diff --git a/.travis.yml b/.travis.yml index 3109a6d0..b5a99d3b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,64 @@ language: node_js node_js: - - 4 - - 5 - - 6 + - "12" + - "10" + - "9" + - "8" + - "7" + - "6" + - "5" + - "4" cache: + yarn: true directories: - node_modules +before_install: + - nvm install-latest-npm + - if [ -n "${ESLINT-}" ]; then npm uninstall --no-save eslint-config-airbnb-base && npm install --no-save "eslint@${ESLINT}"; fi +script: + - if [ "${FLOW-}" = true ]; then npm run flow; fi + - if [ "${LINT-}" = true ]; then npm run lint; fi + - if [ "${TEST-}" = true ]; then npm run test:ci; fi after_success: - - npm run coveralls + - if [ "${TEST-}" = true ]; then npm run coveralls; fi +sudo: false +branches: + only: + - master +env: + global: + - TEST=true + matrix: + - ESLINT=6 + - ESLINT=5 + - ESLINT=4 + - ESLINT=3 +matrix: + fast_finish: true + include: + - node_js: "node" + env: FLOW=true TEST=false + - node_js: "node" + env: LINT=true TEST=false + exclude: + - node_js: "4" + env: ESLINT=5 + - node_js: "4" + env: ESLINT=6 + - node_js: "5" + env: ESLINT=5 + - node_js: "6" + env: ESLINT=6 + allow_failures: + - node_js: "7" + env: ESLINT=6 + - node_js: "5" + env: ESLINT=6 + - node_js: "5" + env: ESLINT=4 + - node_js: "5" + env: ESLINT=3 + - node_js: "4" + env: ESLINT=4 + - node_js: "4" + env: ESLINT=3 diff --git a/package.json b/package.json index bd50bf58..ab6ac86e 100644 --- a/package.json +++ b/package.json @@ -62,7 +62,7 @@ "eslint": "^5 || ^6" }, "peerDependencies": { - "eslint": "^3 || ^4 || ^5 || ^6" + "eslint": "^5 || ^6" }, "jest": { "coverageReporters": [