|
1 | 1 | --- |
2 | 2 | language: node_js |
3 | 3 | node_js: |
4 | | - - "6" |
| 4 | + # we recommend testing addons with the same minimum supported node version as Ember CLI |
| 5 | + # so that your addon works for all apps |
| 6 | + - "4" |
5 | 7 |
|
6 | 8 | sudo: false |
| 9 | +dist: trusty |
| 10 | + |
| 11 | +addons: |
| 12 | + chrome: stable |
7 | 13 |
|
8 | 14 | cache: |
9 | | - directories: |
10 | | - - $HOME/.npm |
11 | | - - $HOME/.cache # includes bowers cache |
| 15 | + yarn: true |
12 | 16 |
|
13 | 17 | env: |
14 | | - # we recommend testing LTS's and latest stable release (bonus points to beta/canary) |
15 | | - - EMBER_TRY_SCENARIO=ember-lts-2.4 |
16 | | - - EMBER_TRY_SCENARIO=ember-lts-2.8 |
17 | | - - EMBER_TRY_SCENARIO=ember-release |
18 | | - - EMBER_TRY_SCENARIO=ember-beta |
19 | | - - EMBER_TRY_SCENARIO=ember-canary |
20 | | - - EMBER_TRY_SCENARIO=ember-default |
| 18 | + global: |
| 19 | + # See https://git.io/vdao3 for details. |
| 20 | + - JOBS=1 |
| 21 | + matrix: |
| 22 | + # we recommend new addons test the current and previous LTS |
| 23 | + # as well as latest stable release (bonus points to beta/canary) |
| 24 | + - EMBER_TRY_SCENARIO=ember-lts-2.12 |
| 25 | + - EMBER_TRY_SCENARIO=ember-lts-2.16 |
| 26 | + - EMBER_TRY_SCENARIO=ember-lts-2.18 |
| 27 | + - EMBER_TRY_SCENARIO=ember-release |
| 28 | + - EMBER_TRY_SCENARIO=ember-beta |
| 29 | + - EMBER_TRY_SCENARIO=ember-canary |
| 30 | + - EMBER_TRY_SCENARIO=ember-default |
21 | 31 |
|
22 | 32 | matrix: |
23 | 33 | fast_finish: true |
24 | 34 | allow_failures: |
25 | 35 | - env: EMBER_TRY_SCENARIO=ember-canary |
26 | 36 |
|
27 | 37 | before_install: |
28 | | - - npm config set spin false |
29 | | - - npm install -g phantomjs-prebuilt |
30 | | - - phantomjs --version |
| 38 | + - curl -o- -L https://yarnpkg.com/install.sh | bash |
| 39 | + - export PATH=$HOME/.yarn/bin:$PATH |
31 | 40 |
|
32 | 41 | install: |
33 | | - - npm install |
| 42 | + - yarn install --no-lockfile --non-interactive |
34 | 43 |
|
35 | 44 | script: |
| 45 | + - yarn lint:js |
36 | 46 | # Usually, it's ok to finish the test scenario without reverting |
37 | 47 | # to the addon's original dependency state, skipping "cleanup". |
38 | | - - node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO test --skip-cleanup |
| 48 | + - node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO --skip-cleanup |
0 commit comments