Add Node 11 to CI, experimental only, no prebuild

Hide deprecation warnings - see nodejs/nan#811
This commit is contained in:
Lovell Fuller 2018-11-11 17:50:58 +00:00
parent f00928dedb
commit 1c4f6f75f3
5 changed files with 42 additions and 5 deletions

View File

@ -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
@ -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
@ -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

View File

@ -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

View File

@ -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
]
}
},

View File

@ -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');

View File

@ -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": {
@ -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"