Skip to content

Commit

Permalink
Merge pull request #248 from Turbo87/ci-split
Browse files Browse the repository at this point in the history
CI: Split CI tasks into multiple jobs
  • Loading branch information
Turbo87 authored Oct 12, 2018
2 parents 79fa03b + 1d47024 commit 40e70e7
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 16 deletions.
57 changes: 42 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
language: node_js
node_js:
- "6"
- "10"

sudo: false
dist: trusty
Expand All @@ -10,25 +10,52 @@ branches:
except:
- /^dependabot\/.*$/

addons:
chrome: stable

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

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

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
- yarn install --no-lockfile

jobs:
include:
- &ember-test
stage: test
env: TEST_SUITE=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".
- yarn test:all --skip-cleanup

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

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

script:
- yarn lint

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

script:
- yarn test:node

- <<: *node-test
node_js: 8

- <<: *node-test
node_js: 6


deploy:
provider: npm
Expand Down
3 changes: 2 additions & 1 deletion config/ember-try.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ module.exports = function() {
getChannelURL('canary'),
]).then((urls) => {
return {
command: 'npm test',
useYarn: true,
command: process.env.TEST_SUITE ? `yarn ${process.env.TEST_SUITE}` : 'yarn test',
useVersionCompatibility: true,
scenarios: [
{
Expand Down

0 comments on commit 40e70e7

Please sign in to comment.