Skip to content

Commit 70203c8

Browse files
committed
chore: do windows stuff conditionally
1 parent e4af576 commit 70203c8

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.travis.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ os:
1313
- linux
1414
- osx
1515
- windows
16-
before_install:
17-
- which git
18-
- git --version
19-
- ls -l /c/PROGRA~1/Git/mingw64/libexec/git-core
20-
- export PATH=/c/PROGRA~1/Git/usr/bin:/c/PROGRA~1/Git/mingw64/libexec/git-core:$PATH
16+
17+
before_install:
18+
- if [ "$TRAVIS_OS_NAME" = "windows" ]; which git ; fi
19+
- if [ "$TRAVIS_OS_NAME" = "windows" ]; git --version ; fi
20+
- if [ "$TRAVIS_OS_NAME" = "windows" ]; ls -l /c/PROGRA~1/Git/mingw64/libexec/git-core ; fi
21+
- if [ "$TRAVIS_OS_NAME" = "windows" ]; export PATH=/c/PROGRA~1/Git/usr/bin:/c/PROGRA~1/Git/mingw64/libexec/git-core:$PATH ; fi
2122

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

0 commit comments

Comments
 (0)