@@ -3,47 +3,59 @@ language: node_js
33node_js :
44 # we recommend testing addons with the same minimum supported node version as Ember CLI
55 # so that your addon works for all apps
6- - " 4 "
6+ - " 6 "
77
8- sudo : required
8+ sudo : false
99dist : trusty
1010
1111addons :
1212 chrome : stable
1313
1414cache :
15- directories :
16- - $HOME/.npm
15+ yarn : true
1716
1817env :
1918 global :
2019 # See https://git.io/vdao3 for details.
2120 - JOBS=1
22- # we recommend new addons test the current and previous LTS
23- # as well as latest stable release (bonus points to beta/canary)
24- matrix :
25- - EMBER_TRY_SCENARIO=ember-pre-2
26- - EMBER_TRY_SCENARIO=ember-lts-2.8
27- - EMBER_TRY_SCENARIO=ember-lts-2.12
28- - EMBER_TRY_SCENARIO=ember-lts-2.16
29- - EMBER_TRY_SCENARIO=ember-release
30- - EMBER_TRY_SCENARIO=ember-beta
31- - EMBER_TRY_SCENARIO=ember-canary
32- - EMBER_TRY_SCENARIO=fastboot-addon-tests
33- - EMBER_TRY_SCENARIO=ember-default
34-
35- matrix :
36- fast_finish : true
21+
22+ jobs :
23+ fail_fast : true
3724 allow_failures :
3825 - env : EMBER_TRY_SCENARIO=ember-canary
3926
27+ include :
28+ # runs linting and tests with current locked deps
29+
30+ - stage : " Tests"
31+ name : " Tests"
32+ install :
33+ - yarn install --non-interactive
34+ script :
35+ - yarn lint:hbs
36+ - yarn lint:js
37+ - yarn test
38+
39+ - name : " Floating Dependencies"
40+ script :
41+ - yarn test
42+
43+ # we recommend new addons test the current and previous LTS
44+ # as well as latest stable release (bonus points to beta/canary)
45+ - stage : " Additional Tests"
46+ env : EMBER_TRY_SCENARIO=ember-lts-2.16
47+ - env : EMBER_TRY_SCENARIO=ember-lts-2.18
48+ - env : EMBER_TRY_SCENARIO=ember-release
49+ - env : EMBER_TRY_SCENARIO=ember-beta
50+ - env : EMBER_TRY_SCENARIO=ember-canary
51+ - env : EMBER_TRY_SCENARIO=ember-default-with-jquery
52+
4053before_install :
41- - npm config set spin false
42- - npm install -g npm@4
43- - npm --version
54+ - curl -o- -L https://yarnpkg.com/install.sh | bash
55+ - export PATH=$HOME/.yarn/bin:$PATH
56+
57+ install :
58+ - yarn install --no-lockfile --non-interactive
4459
4560script :
46- - npm run lint:js
47- # Usually, it's ok to finish the test scenario without reverting
48- # to the addon's original dependency state, skipping "cleanup".
49- - node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO --skip-cleanup
61+ - node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO
0 commit comments