File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 27
27
before_install :
28
28
# prevents windows error: npm ERR! ... git-sh-setup: file not found
29
29
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then export PATH=/c/PROGRA~1/Git/usr/bin:/c/PROGRA~1/Git/mingw64/libexec/git-core:$PATH ; fi
30
+ # workspaces require npm 7 or above
31
+ - if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then export NPM_CONFIG_PREFIX=c:\\npm_prefix PATH="/c/npm_prefix:$PATH"; fi
32
+ - npm install -g npm@latest
30
33
# allow windows to run scripts with node 14 and npm 7 (may not be necessary when node 14 is no longer lts)
31
34
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then export PATH=`npm prefix -g`:$PATH ; fi
32
35
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then npm config set script-shell c:/PROGRA~1/Git/bin/bash.exe ; fi
33
36
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then npm config set loglevel verbose ; fi
34
- # workspaces require npm 7 or above
35
- - if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then export NPM_CONFIG_PREFIX=c:\\npm_prefix PATH="/c/npm_prefix:$PATH"; fi
36
- - npm install -g npm@latest
37
37
38
38
script : npx nyc -s npm run test -- -- -- -t node --bail
39
39
after_success : npx nyc report --reporter=text-lcov > coverage.lcov && npx codecov
You can’t perform that action at this time.
0 commit comments