Skip to content

Commit

Permalink
Refactor CI to use stages. (#285)
Browse files Browse the repository at this point in the history
Refactor CI to use stages.
  • Loading branch information
rwjblue authored Jun 12, 2019
2 parents 95d7c73 + b6b0713 commit 47a72eb
Showing 1 changed file with 27 additions and 12 deletions.
39 changes: 27 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,49 @@
---
language: node_js
node_js:
- "6"
- "8"
- "10"

dist: trusty

addons:
chrome: stable

branches:
only:
- master
# npm version tags
- /^v\d+\.\d+\.\d+/

cache:
yarn: true

matrix:
fast_finish: true
allow_failures:
- env: EMBER_TRY_SCENARIO=ember-canary
jobs:
fail_fast: true

include:
# runs linting and tests with current locked deps

- stage: "Tests"
name: "Tests"
script:
- yarn lint:js
- yarn test

- stage: "Additional Tests"
name: 'Node 6'
node_js: 6

- name: 'Node 8'
node_js: 8

- name: 'Floating Dependencies'
install: yarn install --no-lockfile --non-interactive

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

install:
- yarn install --no-lockfile --non-interactive

script:
- yarn lint:js
- yarn test

before_deploy:
Expand Down

0 comments on commit 47a72eb

Please sign in to comment.