Skip to content

Commit

Permalink
Prefer node 8 for single run tests in Travis CI
Browse files Browse the repository at this point in the history
node@8 will be faster than node@6 at running all these tests,
and will offer better compatibility as our dependencies update and stop
supporting older LTS versions
  • Loading branch information
mroderick committed Nov 3, 2017
1 parent 3a0e28b commit 5693d38
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .travis.yml
Expand Up @@ -23,12 +23,11 @@ before_install:
before_script:
# these build targets only need to run once per build, so let's conserve a few resources
# ESLint only supports Node >=4
- if [ "x$TRAVIS_NODE_VERSION" = "x6" ]; then npm run lint; fi
# run these on node 6 to have npm 3 with flat dependencies
- if [ "x$TRAVIS_NODE_VERSION" = "x6" ]; then npm run lint-markdown; fi
- if [ "x$TRAVIS_NODE_VERSION" = "x6" ]; then npm run test-headless; fi
- if [ "x$TRAVIS_NODE_VERSION" = "x6" ]; then npm run test-webworker; fi
- if [ "x$TRAVIS_NODE_VERSION" = "x6" ] && [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then npm run test-cloud; fi
- if [ "x$TRAVIS_NODE_VERSION" = "x8" ]; then npm run lint; fi
- if [ "x$TRAVIS_NODE_VERSION" = "x8" ]; then npm run lint-markdown; fi
- if [ "x$TRAVIS_NODE_VERSION" = "x8" ]; then npm run test-headless; fi
- if [ "x$TRAVIS_NODE_VERSION" = "x8" ]; then npm run test-webworker; fi
- if [ "x$TRAVIS_NODE_VERSION" = "x8" ] && [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then npm run test-cloud; fi

script:
- npm run test-node
Expand Down

0 comments on commit 5693d38

Please sign in to comment.