File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -28,10 +28,9 @@ 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
30
# allow windows to run scripts with node 14 and npm 7 (may not be necessary when node 14 is no longer lts)
31
- - if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then npm config set script-shell powershell ; fi
32
- - if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then powershell Set-ExecutionPolicy -Scope CurrentUser Bypass ; fi
31
+ - if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then npm config set script-shell c:/PROGRA~1/Git/git-bash.exe ; fi
33
32
# workspaces require npm 7 or above
34
- - if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then powershell npm install -g npm@latest ; fi
33
+ - if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then c:/PROGRA~1/Git/git-bash.exe npm install -g npm@latest ; fi
35
34
- if [[ "$TRAVIS_OS_NAME" != "windows" ]]; then npm install -g npm@latest ; fi
36
35
37
36
script : npx nyc -s npm run test -- -- -- -t node --bail
You can’t perform that action at this time.
0 commit comments