Skip to content

Commit

Permalink
Simplify npm scripts and travs setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Munter committed Oct 25, 2015
1 parent 826f3e3 commit 56b8835
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 6 deletions.
1 change: 1 addition & 0 deletions .jshintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
testdata
coverage
29 changes: 25 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,31 @@
sudo: required
services:
- docker
language: node_js
node_js:
- "0.10"
- "0.12"
- "iojs-v2.3.1"
before_install: "sudo apt-get update && sudo apt-get install -y libcairo2-dev libjpeg8-dev libgif-dev optipng pngcrush pngquant libpango1.0-dev"
- '4'
- '3'
- '2'
- '1'
- '0.12'
- '0.10'
cache:
directories:
- node_modules
addons:
apt:
packages:
- gcc-4.8
- g++-4.8
- libcairo2-dev
- libjpeg8-dev
- libgif-dev
- libpango1.0-dev

env: CXX="g++-4.8" CC="gcc-4.8"

script: "npm run-script travis"
after_success: "<coverage/lcov.info ./node_modules/coveralls/bin/coveralls.js"

notifications:
webhooks:
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@
"scripts": {
"lint": "jshint .",
"test": "npm run lint && mocha",
"travis": "npm run lint && NODE_ENV=development ./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha -- --reporter dot && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
"coverage": "NODE_ENV=development ./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha -- --reporter dot"
"coverage": "istanbul cover _mocha",
"travis": "npm run lint && npm run coverage"
},
"main": "lib/spriteBackgroundImages.js"
}

0 comments on commit 56b8835

Please sign in to comment.