Skip to content

Commit 6ccb323

Browse files
authored
Merge pull request webpack#3200 from TheLarkInn/feature/add_additional_node_support_to_tests
chore(test): add node 7, and 0.12 to travis
2 parents 86b8dc3 + e689a9d commit 6ccb323

2 files changed

Lines changed: 13 additions & 5 deletions

File tree

.travis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,23 @@ os:
1010
- linux
1111
# - osx
1212
node_js:
13+
- "7"
1314
- "6"
1415
- "4"
16+
- "v0.12.17"
1517

1618
matrix:
1719
allow_failures:
1820
- node_js: "4"
21+
- node_js: "v0.12.17"
1922

2023
script: npm run travis
2124
env:
2225
- NO_WATCH_TESTS=1
2326

27+
before_install: if [[ `npm -v` != 3* ]]; then npm i -g npm@3; fi
2428
install:
25-
- npm install yarn -g
26-
- yarn install
27-
- yarn link || true
28-
- yarn link webpack
29-
29+
- bash ./ci/travis-install.sh
3030
after_success:
3131
- cat ./coverage/lcov.info | node_modules/.bin/coveralls --verbose
3232
- cat ./coverage/coverage.json | node_modules/codecov.io/bin/codecov.io.js

ci/travis-install.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
set -ev
3+
4+
if [ "$TRAVIS_NODE_VERSION" == "v0.12.17" ]; then
5+
npm install --force && npm link && npm link webpack;
6+
else
7+
npm install yarn -g && yarn install && yarn link || true && yarn link webpack;
8+
fi

0 commit comments

Comments
 (0)