Skip to content

Commit

Permalink
Add travis config (puppeteer#29)
Browse files Browse the repository at this point in the history
This patch: 
- adds travis
- adds eslint as required in devdeps
- cleans up travis yml
  • Loading branch information
paulirish authored and pavelfeldman committed Jun 21, 2017
1 parent 8e0a3ac commit a033b1b
Show file tree
Hide file tree
Showing 3 changed files with 606 additions and 5 deletions.
16 changes: 16 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
language: node_js
node_js:
- "7"
dist: trusty
env:
cache:
yarn: true
directories:
- node_modules
install:
- yarn install
# puppeteer's install script downloads Chrome
script:
- yarn run lint
- yarn run test-puppeteer
- yarn run test-phantom
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"test-phantom": "python third_party/phantomjs/test/run-tests.py",
"test": "npm run lint --silent && npm run test-puppeteer && npm run test-phantom",
"install": "node install.js",
"lint": "eslint --quiet -f codeframe . || eslint ."
"lint": "[ \"$CI\" = true ] && eslint --quiet -f codeframe . || eslint ."
},
"author": "The Chromium Authors",
"license": "SEE LICENSE IN LICENSE",
Expand All @@ -27,6 +27,7 @@
},
"devDependencies": {
"deasync": "^0.1.9",
"eslint": "^4.0.0",
"jasmine": "^2.6.0",
"minimist": "^1.2.0",
"ncp": "^2.0.0",
Expand Down
Loading

0 comments on commit a033b1b

Please sign in to comment.