Skip to content

Commit 049b06f

Browse files
committed
chore: windows
1 parent e75e280 commit 049b06f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ before_install:
2929
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then export PATH=/c/PROGRA~1/Git/usr/bin:/c/PROGRA~1/Git/mingw64/libexec/git-core:$PATH ; fi
3030
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then npm config set script-shell powershell ; fi
3131
# workspaces require npm 7 or above
32-
- npm install -g npm@latest
32+
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then powershell npm install -g npm@latest ; fi
33+
- if [[ "$TRAVIS_OS_NAME" != "windows" ]]; then npm install -g npm@latest ; fi
3334

3435
script: npx nyc -s npm run test -- -- -- -t node --bail
3536
after_success: npx nyc report --reporter=text-lcov > coverage.lcov && npx codecov

0 commit comments

Comments
 (0)