|
19 | 19 | global: |
20 | 20 | # See https://git.io/vdao3 for details. |
21 | 21 | - JOBS=1 |
22 | | - matrix: |
23 | | - # we recommend new addons test the current and previous LTS |
24 | | - # as well as latest stable release (bonus points to beta/canary) |
25 | | - - EMBER_TRY_SCENARIO=ember-lts-2.12 |
26 | | - - EMBER_TRY_SCENARIO=ember-lts-2.16 |
27 | | - - EMBER_TRY_SCENARIO=ember-release |
28 | | - - EMBER_TRY_SCENARIO=ember-beta |
29 | | - - EMBER_TRY_SCENARIO=ember-canary |
30 | | - - EMBER_TRY_SCENARIO=ember-default |
31 | | - |
32 | | -matrix: |
33 | | - fast_finish: true |
| 22 | + |
| 23 | +jobs: |
| 24 | + fail_fast: true |
34 | 25 | allow_failures: |
35 | 26 | - env: EMBER_TRY_SCENARIO=ember-canary |
| 27 | + |
| 28 | + include: |
| 29 | + # runs linting and tests with current locked deps |
| 30 | + |
| 31 | + - stage: "Tests" |
| 32 | + name: "Tests" |
| 33 | + script: |
| 34 | + - npm run lint:hbs |
| 35 | + - npm run lint:js |
| 36 | + - npm test |
| 37 | + |
| 38 | + # we recommend new addons test the current and previous LTS |
| 39 | + # as well as latest stable release (bonus points to beta/canary) |
| 40 | + - stage: "Additional Tests" |
| 41 | + env: EMBER_TRY_SCENARIO=ember-lts-2.16 |
| 42 | + - env: EMBER_TRY_SCENARIO=ember-lts-2.18 |
| 43 | + - env: EMBER_TRY_SCENARIO=ember-release |
36 | 44 | - env: EMBER_TRY_SCENARIO=ember-beta |
| 45 | + - env: EMBER_TRY_SCENARIO=ember-canary |
| 46 | + - env: EMBER_TRY_SCENARIO=ember-default-with-jquery |
37 | 47 |
|
38 | 48 | before_install: |
39 | 49 | - npm config set spin false |
40 | 50 | - npm install -g npm@4 |
41 | 51 | - npm --version |
42 | 52 |
|
43 | 53 | script: |
44 | | - - npm run lint:js |
45 | | - # Usually, it's ok to finish the test scenario without reverting |
46 | | - # to the addon's original dependency state, skipping "cleanup". |
47 | | - - node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO --skip-cleanup |
| 54 | + - node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO |
0 commit comments