Skip to content

Commit 2d82148

Browse files
committed
Fix travis-CI scripts
1 parent e4afd79 commit 2d82148

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.travis.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ before_install:
1919
# Setup Node.js version-specific dependencies
2020
- "test $TRAVIS_NODE_VERSION != '0.8' || npm rm --save-dev istanbul"
2121
- "test $(echo $TRAVIS_NODE_VERSION | cut -d. -f1) -ge 4 || npm rm --save-dev eslint"
22+
- "test $(echo $TRAVIS_NODE_VERSION | cut -d. -f1) -le 7 || npm install --only=dev https://github.com/sogaani/express.git#initial-support-http2 https://github.com/sogaani/supertest.git#http2"
2223
# Update Node.js modules
2324
- "test ! -d node_modules || npm prune"
2425
- "test ! -d node_modules || npm rebuild"
@@ -28,8 +29,6 @@ script:
2829
- "test -z $(npm -ps ls istanbul) || npm run-script test-ci"
2930
- "test -z $(npm -ps ls eslint) || npm run-script lint"
3031
# Run test script with http2
31-
- "test $(echo $TRAVIS_NODE_VERSION | cut -d. -f1) -ge 8 || npm install https://github.com/sogaani/express.git#initial-support-http2 https://github.com/sogaani/supertest.git#http2"
32-
- "test $(echo $TRAVIS_NODE_VERSION | cut -d. -f1) -ge 8 || npm test-http2"
33-
- "test $(echo $TRAVIS_NODE_VERSION | cut -d. -f1) -ge 8 || npm run-script test-http2-ci"
32+
- "test $(echo $TRAVIS_NODE_VERSION | cut -d. -f1) -le 7 || npm run-script test-http2-ci"
3433
after_script:
3534
- "test -e ./coverage/lcov.info && npm install coveralls@2 && cat ./coverage/lcov.info | coveralls"

0 commit comments

Comments
 (0)