Skip to content

Commit 0b10b56

Browse files
committed
Make travis run the lint task as well as specs
closes #284
1 parent 0b4ab7d commit 0b10b56

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ node_js:
77
before_script:
88
- export DISPLAY=:99.0
99
- sh -e /etc/init.d/xvfb start
10+
script: npm run test:full
11+
cache: yarn

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,16 @@
1414
},
1515
"scripts": {
1616
"test": "NODE_ENV=test karma start",
17+
"test:full": "npm-run-all -p 'test -- --single-run' lint",
1718
"start": "scripts/dev-examples",
1819
"docs": "npm-run-all docs:*",
1920
"docs-dev": "npm-run-all docs:clean docs:prepare docs:build:watch",
2021
"docs:clean": "rimraf _book",
2122
"docs:prepare": "gitbook install",
2223
"docs:build": "gitbook build -g reactjs/react-modal",
2324
"docs:build:watch": "gitbook serve",
24-
"docs:publish": "cd _book && git init && git commit --allow-empty -m 'update book' && git checkout -b gh-pages && touch .nojekyll && git add . && git commit -am 'update book' && git push [email protected]:reactjs/react-modal gh-pages --force"
25+
"docs:publish": "cd _book && git init && git commit --allow-empty -m 'update book' && git checkout -b gh-pages && touch .nojekyll && git add . && git commit -am 'update book' && git push [email protected]:reactjs/react-modal gh-pages --force",
26+
"lint": "eslint lib/ specs/"
2527
},
2628
"authors": [
2729
"Ryan Florence"

0 commit comments

Comments
 (0)