File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -120,7 +120,11 @@ commands:
120
120
- run :
121
121
# # (See #1082 for rationale).
122
122
name : run functional tests in npm production environment
123
- command : npm run test-functional
123
+ command : |
124
+ nvm --help && nvm run npm run test-functional
125
+ nvm --help || (
126
+ NPM_CONFIG_PREFIX=~/.npm-global npm run test-functional
127
+ )
124
128
environment :
125
129
TEST_PRODUCTION_MODE : 1
126
130
CI_RETRY_ONCE : << parameters.retry_once >>
@@ -131,7 +135,11 @@ commands:
131
135
- run :
132
136
# # (See #1639 for rationale).
133
137
name : run functional tests in npm legacy bundling mode
134
- command : npm run test-functional
138
+ command : |
139
+ nvm --help && nvm run npm run test-functional
140
+ nvm --help || (
141
+ NPM_CONFIG_PREFIX=~/.npm-global npm run test-functional
142
+ )
135
143
environment :
136
144
TEST_PRODUCTION_MODE : 1
137
145
TEST_LEGACY_BUNDLING : 1
@@ -156,7 +164,6 @@ commands:
156
164
steps :
157
165
# NOTE: keep the following steps compatible with both bash and cmd.exe
158
166
- run : cd .. && mkdir .npm-global
159
- - run : npm config set prefix '../.npm-global'
160
167
161
168
jobs :
162
169
build :
You can’t perform that action at this time.
0 commit comments