Skip to content

Commit

Permalink
Add Node 11 to CI, experimental only, no prebuild
Browse files Browse the repository at this point in the history
Hide deprecation warnings - see nodejs/nan#811
  • Loading branch information
lovell committed Nov 11, 2018
1 parent f00928d commit 1c4f6f7
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 5 deletions.
25 changes: 25 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ matrix:
after_success:
- npm install coveralls
- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
- name: "Linux (glibc) - Node 11 (Experimental)"
os: linux
dist: trusty
sudo: false
language: node_js
node_js: "11"
before_install:
- unset PREBUILD_TOKEN
- name: "Linux (musl) - Node 8"
os: linux
dist: trusty
Expand All @@ -41,6 +49,16 @@ matrix:
- sudo docker exec sharp apk add build-base git python2 --update-cache
install: sudo docker exec sharp sh -c "npm install --unsafe-perm"
script: sudo docker exec sharp sh -c "npm test"
- name: "Linux (musl) - Node 11 (Experimental)"
os: linux
dist: trusty
sudo: true
language: minimal
before_install:
- sudo docker run -dit --name sharp --env CI --volume "${PWD}:/mnt/sharp" --workdir /mnt/sharp node:11-alpine
- sudo docker exec sharp apk add build-base git python2 --update-cache
install: sudo docker exec sharp sh -c "npm install --unsafe-perm"
script: sudo docker exec sharp sh -c "npm test"
- name: "OS X - Node 6"
os: osx
osx_image: xcode9.2
Expand All @@ -56,3 +74,10 @@ matrix:
osx_image: xcode9.2
language: node_js
node_js: "10"
- name: "OS X - Node 11 (Experimental)"
os: osx
osx_image: xcode9.2
language: node_js
node_js: "11"
before_install:
- unset PREBUILD_TOKEN
2 changes: 2 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ environment:
- nodejs_version: "6"
- nodejs_version: "8"
- nodejs_version: "10"
- nodejs_version: "11"
PREBUILD_TOKEN: ""
install:
- ps: Install-Product node $env:nodejs_version x64
- npm install -g npm@5
Expand Down
11 changes: 10 additions & 1 deletion binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -183,13 +183,22 @@
},
'configurations': {
'Release': {
'cflags_cc': [
'-Wno-deprecated-declarations'
],
'xcode_settings': {
'OTHER_CPLUSPLUSFLAGS': [
'-Wno-deprecated-declarations'
]
},
'msvs_settings': {
'VCCLCompilerTool': {
'ExceptionHandling': 1
}
},
'msvs_disabled_warnings': [
4275
4275,
4996
]
}
},
Expand Down
2 changes: 1 addition & 1 deletion lib/constructor.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const events = require('events');
const is = require('./is');

require('./libvips').hasVendoredLibvips();
const sharp = require('../build/Release/sharp.node');
const sharp = require('bindings')('sharp.node');

// Use NODE_DEBUG=sharp to enable libvips warnings
const debuglog = util.debuglog('sharp');
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,16 @@
"vips"
],
"dependencies": {
"bindings": "^1.3.0",
"color": "^3.1.0",
"detect-libc": "^1.0.3",
"nan": "^2.11.1",
"fs-copy-file-sync": "^1.1.1",
"nan": "^2.11.1",
"npmlog": "^4.1.2",
"prebuild-install": "^5.2.1",
"semver": "^5.6.0",
"simple-get": "^3.0.3",
"tar": "^4.4.6",
"tar": "^4.4.8",
"tunnel-agent": "^0.6.0"
},
"devDependencies": {
Expand All @@ -109,7 +110,7 @@
"mocha": "^5.2.0",
"mock-fs": "^4.7.0",
"nyc": "^13.1.0",
"prebuild": "^8.1.1",
"prebuild": "^8.1.2",
"prebuild-ci": "^2.2.3",
"rimraf": "^2.6.2",
"semistandard": "^12.0.1"
Expand Down

0 comments on commit 1c4f6f7

Please sign in to comment.