Skip to content

Commit

Permalink
Use Travis CI's container-based infrastructure
Browse files Browse the repository at this point in the history
Alter test threshold as libvips improved greyscale conversion
  • Loading branch information
lovell committed Jan 16, 2016
1 parent 7ba31fd commit 6d73d91
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
17 changes: 12 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
language: node_js
node_js:
- "0.10"
- "0.12"
- "1"
- "2"
language: node_js
- "4"
- "5"
sudo: false
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
env:
CXX=g++-4.8
script: "npm run-script test-travis"
after_script: "npm install coveralls@2 && cat ./coverage/lcov.info | coveralls"
before_install:
- curl -s https://raw.githubusercontent.com/lovell/sharp/master/preinstall.sh | sudo bash -
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"devDependencies": {
"istanbul": "0",
"mocha": "2",
"should": "4"
"should": "8"
},
"scripts": {
"test": "mocha --reporter spec",
Expand Down
2 changes: 1 addition & 1 deletion test/spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe('dhash', function() {
if (err) throw err;
dhash(__dirname + '/images/face-low.jpg', function(err, lowHash) {
if (err) throw err;
hamming(highHash, lowHash).should.be.below(2);
hamming(highHash, lowHash).should.be.below(4);
done();
});
});
Expand Down

0 comments on commit 6d73d91

Please sign in to comment.