Skip to content

Commit e1963d0

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

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ os:
2727
before_install:
2828
# prevents windows error: npm ERR! ... git-sh-setup: file not found
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
30+
# allow windows to run scripts with node 14 and npm 7 (may not be necessary when node 14 is no longer lts)
3031
- 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
3133
# workspaces require npm 7 or above
3234
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then powershell npm install -g npm@latest ; fi
3335
- if [[ "$TRAVIS_OS_NAME" != "windows" ]]; then npm install -g npm@latest ; fi

0 commit comments

Comments
 (0)