Skip to content

Commit

Permalink
[Tests] test resolvers in CI separately
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jan 4, 2018
1 parent 2470ed7 commit 359a200
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 6 deletions.
18 changes: 14 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,18 @@ env:
# osx backlog is often deep, so to be polite we can just hit these highlights
matrix:
include:
- env: PACKAGE=resolvers/node
node_js: 8
- env: PACKAGE=resolvers/node
node_js: 6
- env: PACKAGE=resolvers/node
node_js: 4
- env: PACKAGE=resolvers/webpack
node_js: 8
- env: PACKAGE=resolvers/webpack
node_js: 6
- env: PACKAGE=resolvers/webpack
node_js: 4
- os: osx
env: ESLINT_VERSION=4
node_js: 8
Expand All @@ -25,16 +37,14 @@ matrix:
node_js: 4

before_install:
- nvm install-latest-npm
- 'nvm install-latest-npm'
- 'if [ -n "${PACKAGE-}" ]; then cd "${PACKAGE}"; fi'
install:
- npm install
- npm install --no-save eslint@$ESLINT_VERSION --ignore-scripts || true
# install all resolver deps
- 'for resolver in ./resolvers/*; do cd "${resolver}" && npm install && cd ../..; done'

script:
- 'npm test'
- 'for resolver in ./resolvers/*; do cd $resolver && npm test && cd ../..; done'

after_success:
- npm run coveralls
1 change: 1 addition & 0 deletions resolvers/node/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
1 change: 1 addition & 0 deletions resolvers/webpack/.babelrc
1 change: 1 addition & 0 deletions resolvers/webpack/.npmrc
6 changes: 4 additions & 2 deletions resolvers/webpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,11 @@
"webpack": ">=1.11.0"
},
"devDependencies": {
"babel-plugin-istanbul": "^4.1.5",
"babel-preset-es2015-argon": "^0.1.0",
"babel-register": "^6.26.0",
"chai": "^3.4.1",
"mocha": "^2.3.3",
"nyc": "^7.0.0",
"babel-preset-es2015-argon": "latest"
"nyc": "^7.0.0"
}
}

0 comments on commit 359a200

Please sign in to comment.