Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Simplify job definition #34

Merged
merged 2 commits into from
Oct 13, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 22 additions & 29 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,38 @@
language: node_js

node_js:
- "6"
- "8"
- "10"
node_js: 10

branches:
except:
- /^dependabot\/.*$/

env:
- ESLINT_VERSION=2
- ESLINT_VERSION=3
- ESLINT_VERSION=4
- ESLINT_VERSION=5

matrix:
exclude:
- node_js: "6"
env: ESLINT_VERSION=3
- node_js: "6"
env: ESLINT_VERSION=4
- node_js: "6"
env: ESLINT_VERSION=5
- node_js: "8"
env: ESLINT_VERSION=3
- node_js: "8"
env: ESLINT_VERSION=4
- node_js: "8"
env: ESLINT_VERSION=5

cache:
yarn: true

before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH=$HOME/.yarn/bin:$PATH

install:
- yarn install
- yarn add eslint@$ESLINT_VERSION
jobs:
include:
- stage: test
install:
- yarn install

- &test
stage: test
node_js: 6
env: ESLINT_VERSION=2

install:
- yarn install
- yarn add eslint@$ESLINT_VERSION

- <<: *test
node_js: 8
env: ESLINT_VERSION=3

- <<: *test
env: ESLINT_VERSION=4

deploy:
provider: npm
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
"devDependencies": {
"chai": "^4.2.0",
"eslint": "2.1.0",
"eslint": "5.7.0",
"import-from": "^2.1.0",
"mocha": "^5.2.0"
},
Expand Down
Loading