|
1 | 1 | ---
|
2 | 2 | language: node_js
|
3 | 3 | node_js:
|
| 4 | + # we recommend testing addons with the same minimum supported node version as Ember CLI |
| 5 | + # so that your addon works for all apps |
4 | 6 | - "6"
|
5 | 7 |
|
6 | 8 | sudo: required
|
7 | 9 | dist: trusty
|
8 | 10 |
|
| 11 | +addons: |
| 12 | + chrome: stable |
| 13 | + |
9 | 14 | cache:
|
10 | 15 | yarn: true
|
11 | 16 |
|
12 |
| -addons: |
13 |
| - apt: |
14 |
| - sources: |
15 |
| - - google-chrome |
16 |
| - packages: |
17 |
| - - google-chrome-stable |
18 |
| - |
19 | 17 | env:
|
20 |
| - - EMBER_TRY_SCENARIO=ember-1.13 |
21 |
| - - EMBER_TRY_SCENARIO=ember-lts-2.4 |
22 |
| - - EMBER_TRY_SCENARIO=ember-lts-2.8 |
23 |
| - - EMBER_TRY_SCENARIO=ember-release |
24 |
| - - EMBER_TRY_SCENARIO=ember-beta |
| 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.4 |
| 25 | + - EMBER_TRY_SCENARIO=ember-lts-2.8 |
| 26 | + - EMBER_TRY_SCENARIO=ember-lts-2.12 |
| 27 | + - EMBER_TRY_SCENARIO=ember-release |
| 28 | + - EMBER_TRY_SCENARIO=ember-beta |
| 29 | + - EMBER_TRY_SCENARIO=ember-canary |
| 30 | + - EMBER_TRY_SCENARIO=ember-default |
25 | 31 |
|
26 | 32 | matrix:
|
27 | 33 | fast_finish: true
|
| 34 | + allow_failures: |
| 35 | + - env: EMBER_TRY_SCENARIO=ember-beta |
| 36 | + - env: EMBER_TRY_SCENARIO=ember-canary |
28 | 37 |
|
29 | 38 | before_install:
|
30 |
| - - export DISPLAY=:99.0 |
31 |
| - - sh -e /etc/init.d/xvfb start |
32 | 39 | - curl -o- -L https://yarnpkg.com/install.sh | bash
|
33 | 40 | - export PATH=$HOME/.yarn/bin:$PATH
|
34 |
| - - yarn global add phantomjs-prebuilt |
35 |
| - - phantomjs --version |
36 | 41 |
|
37 | 42 | install:
|
38 |
| - - yarn global add bower |
39 |
| - - yarn install --no-lockfile |
| 43 | + - yarn install --no-lockfile --non-interactive |
40 | 44 |
|
41 | 45 | script:
|
42 |
| - - node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO test --skip-cleanup |
| 46 | + # Usually, it's ok to finish the test scenario without reverting |
| 47 | + # to the addon's original dependency state, skipping "cleanup". |
| 48 | + - node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO --skip-cleanup |
0 commit comments