Skip to content

Commit

Permalink
CI: Split CI tasks into multiple jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
Turbo87 committed Oct 12, 2018
1 parent 79fa03b commit bd72fc0
Showing 1 changed file with 42 additions and 10 deletions.
52 changes: 42 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,57 @@ branches:
except:
- /^dependabot\/.*$/

addons:
chrome: stable

cache:
directories:
- $HOME/.npm
- $HOME/.npm

before_install:
- npm config set spin false

install:
- npm install

script:
# Usually, it's ok to finish the test scenario without reverting
# to the addon's original dependency state, skipping "cleanup".
- npm run test:all -- --skip-cleanup
- npm run test:node
- npm run lint
jobs:
include:
- &ember-test
stage: test
env: NAME=test:strip # used only to make Travis UI show description

addons:
chrome: stable

script:
# Usually, it's ok to finish the test scenario without reverting
# to the addon's original dependency state, skipping "cleanup".
- npm run test:strip -- --skip-cleanup

- <<: *ember-test
env: NAME=test:keep # used only to make Travis UI show description

script:
# Usually, it's ok to finish the test scenario without reverting
# to the addon's original dependency state, skipping "cleanup".
- npm run test:keep -- --skip-cleanup

- stage: test
env: NAME=lint # used only to make Travis UI show description

script:
- npm run lint

- &node-test
stage: test
env: NAME=node-tests # used only to make Travis UI show description

script:
- npm run test:node

- <<: *node-test
node_js: 8

- <<: *node-test
node_js: 10


deploy:
provider: npm
Expand Down

0 comments on commit bd72fc0

Please sign in to comment.