Skip to content

Commit 9adf704

Browse files
committed
Update Travis config and add lint task
1 parent 83af085 commit 9adf704

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

.travis.yml

+17-2
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,31 @@ env:
1818
global:
1919
# See https://git.io/vdao3 for details.
2020
- 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
2131

2232
matrix:
2333
fast_finish: true
34+
allow_failures:
35+
- env: EMBER_TRY_SCENARIO=ember-canary
2436

2537
before_install:
2638
- curl -o- -L https://yarnpkg.com/install.sh | bash
2739
- export PATH=$HOME/.yarn/bin:$PATH
2840

2941
install:
30-
- yarn install --no-lockfile --ignore-engines --non-interactive
42+
- yarn install --no-lockfile --non-interactive
3143

3244
script:
33-
- node_modules/.bin/ember try:each --skip-cleanup
45+
- yarn lint:js
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

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"build": "ember build",
1717
"start": "ember serve",
1818
"deploy": "ember github-pages:commit --message \"Deploy gh-pages from commit $(git rev-parse HEAD)\"; git push; git checkout -",
19-
"test": "ember try:each"
19+
"test": "ember try:each",
20+
"lint:js": "eslint ./*.js app config lib server tests"
2021
},
2122
"dependencies": {
2223
"ember-cli-babel": "^6.12.0",

0 commit comments

Comments
 (0)