Skip to content

Commit 1e9aefa

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

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.travis.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,18 @@ env:
2121

2222
matrix:
2323
fast_finish: true
24+
allow_failures:
25+
- env: EMBER_TRY_SCENARIO=ember-canary
2426

2527
before_install:
2628
- curl -o- -L https://yarnpkg.com/install.sh | bash
2729
- export PATH=$HOME/.yarn/bin:$PATH
2830

2931
install:
30-
- yarn install --no-lockfile --ignore-engines --non-interactive
32+
- yarn install --no-lockfile --non-interactive
3133

3234
script:
35+
- yarn lint:js
36+
# Usually, it's ok to finish the test scenario without reverting
37+
# to the addon's original dependency state, skipping "cleanup".
3338
- node_modules/.bin/ember try:each --skip-cleanup

package.json

Lines changed: 2 additions & 1 deletion
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)