Skip to content

Commit

Permalink
[Tests] speed up tests further by *really* only running linting once.
Browse files Browse the repository at this point in the history
 - Also, simplify test matrix config.
  • Loading branch information
ljharb committed Aug 26, 2016
1 parent e5cb263 commit b6e82f4
Showing 1 changed file with 17 additions and 50 deletions.
67 changes: 17 additions & 50 deletions .travis.yml
Expand Up @@ -10,59 +10,26 @@ before_install:
- 'if [ "${TRAVIS_NODE_VERSION}" != "0.6" ] && [ "${TRAVIS_NODE_VERSION}" != "0.9" ]; then npm install -g npm; fi'
before_script: "sh install-relevant-react.sh"
script:
- 'if [ -z "$REACT" ] && [ "${TRAVIS_NODE_VERSION}" = "4" ]; then npm run test:env -- "${EXAMPLE}" ; elif [ -z "$REACT" ]; then echo "Test Skipped" ; elif [ "${TRAVIS_NODE_VERSION}" = "4" ]; then npm run lint && npm run travis ; elif [ "${TRAVIS_NODE_VERSION}" = "0.12" ] || [ "${TRAVIS_NODE_VERSION}" = "0.10" ]; then npm run travis ; else npm test ; fi'
- 'if [ -n "${EXAMPLE-}" ]; then npm run test:env -- "${EXAMPLE}" ; elif [ -n "${LINT-}" ]; then npm run lint; elif [ -n "${REACT-}" ]; then npm run travis; else echo "Test Skipped" ; fi'
after_script:
- 'if [ "${TRAVIS_NODE_VERSION}" = "4" ] || [ "${TRAVIS_NODE_VERSION}" = "0.12" ]; then cat ./coverage/lcov.info | ./node_modules/.bin/coveralls ; fi'
sudo: false
matrix:
fast_finish: true
include:
- node_js: "node"
env: LINT=true
- node_js: "node"
env: EXAMPLE=mocha
- node_js: "node"
env: EXAMPLE=karma
- node_js: "node"
env: EXAMPLE=react-native
- node_js: "node"
env: EXAMPLE=karma-webpack
- node_js: "node"
env: EXAMPLE=jest
env:
- REACT=0.13
- REACT=0.14
- REACT=15
- EXAMPLE=mocha
- EXAMPLE=karma
- EXAMPLE=react-native
- EXAMPLE=karma-webpack
- EXAMPLE=jest
sudo: false
matrix:
fast_finish: true
exclude:
- node_js: "5"
env: EXAMPLE=mocha
- node_js: "5"
env: EXAMPLE=karma
- node_js: "5"
env: EXAMPLE=react-native
- node_js: "5"
env: EXAMPLE=karma-webpack
- node_js: "5"
env: EXAMPLE=jest
- node_js: "4"
env: EXAMPLE=mocha
- node_js: "4"
env: EXAMPLE=karma
- node_js: "4"
env: EXAMPLE=react-native
- node_js: "4"
env: EXAMPLE=karma-webpack
- node_js: "4"
env: EXAMPLE=jest
- node_js: "0.12"
env: EXAMPLE=mocha
- node_js: "0.12"
env: EXAMPLE=karma
- node_js: "0.12"
env: EXAMPLE=react-native
- node_js: "0.12"
env: EXAMPLE=karma-webpack
- node_js: "0.12"
env: EXAMPLE=jest
- node_js: "0.10"
env: EXAMPLE=mocha
- node_js: "0.10"
env: EXAMPLE=karma
- node_js: "0.10"
env: EXAMPLE=react-native
- node_js: "0.10"
env: EXAMPLE=karma-webpack
- node_js: "0.10"
env: EXAMPLE=jest

0 comments on commit b6e82f4

Please sign in to comment.