11---
22language : node_js
33node_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
46 - " 6"
57
68sudo : false
1618 global :
1719 # See https://git.io/vdao3 for details.
1820 - JOBS=1
19- matrix :
21+
22+ branches :
23+ only :
24+ - master
25+ # npm version tags
26+ - /^v\d+\.\d+\.\d+/
27+
28+ jobs :
29+ fail_fast : true
30+ allow_failures :
31+ - env : EMBER_TRY_SCENARIO=ember-canary
32+
33+ include :
34+ # runs linting and tests with current locked deps
35+
36+ - stage : " Tests"
37+ name : " Tests"
38+ install :
39+ - yarn install --non-interactive
40+ script :
41+ - yarn lint:hbs
42+ - yarn lint:js
43+ - yarn test
44+
45+ - name : " Floating Dependencies"
46+ script :
47+ - yarn test
48+
2049 # we recommend new addons test the current and previous LTS
2150 # as well as latest stable release (bonus points to beta/canary)
22- - EMBER_TRY_SCENARIO=ember-lts-2.12
23- - EMBER_TRY_SCENARIO=ember-lts-2.16
24- - EMBER_TRY_SCENARIO=ember-release
25- - EMBER_TRY_SCENARIO=ember-beta
26- - EMBER_TRY_SCENARIO=ember-canary
27- - EMBER_TRY_SCENARIO=ember-default
28- - EMBER_TRY_SCENARIO=fastboot
29-
30- matrix :
31- fast_finish : true
32- allow_failures :
51+ - stage : " Additional Tests"
52+ env : EMBER_TRY_SCENARIO=ember-lts-2.18
53+ - env : EMBER_TRY_SCENARIO=ember-lts-3.4
54+ - env : EMBER_TRY_SCENARIO=ember-release
55+ - env : EMBER_TRY_SCENARIO=ember-beta
3356 - env : EMBER_TRY_SCENARIO=ember-canary
57+ - env : EMBER_TRY_SCENARIO=ember-default-with-jquery
58+ - env : EMBER_TRY_SCENARIO=fastboot
3459
3560before_install :
3661 - curl -o- -L https://yarnpkg.com/install.sh | bash
@@ -40,6 +65,4 @@ install:
4065 - yarn install --no-lockfile --non-interactive
4166
4267script :
43- # Usually, it's ok to finish the test scenario without reverting
44- # to the addon's original dependency state, skipping "cleanup".
45- - node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO --skip-cleanup
68+ - node_modules/.bin/ember try:one $EMBER_TRY_SCENARIO
0 commit comments