File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 12
12
# https://github.com/jasongin/nvs/blob/master/doc/CI.md
13
13
- NVS_VERSION=1.4.2
14
14
matrix :
15
- - NODEJS_VERSION=node/4
16
15
- NODEJS_VERSION=node/6
17
16
- NODEJS_VERSION=node/8
18
- - NODEJS_VERSION=node/9
19
17
- NODEJS_VERSION=node/10
20
- - NODEJS_VERSION=chakracore/8
21
- - NODEJS_VERSION=chakracore/10
18
+ - NODEJS_VERSION=node/12
22
19
- NODEJS_VERSION=nightly
23
- - NODEJS_VERSION=chakracore-nightly
24
20
matrix :
25
21
fast_finish : true
26
22
allow_failures :
27
23
- env : NODEJS_VERSION=nightly
28
- - env : NODEJS_VERSION=chakracore-nightly
29
24
sudo : false
30
25
cache :
31
26
directories :
@@ -59,7 +54,13 @@ install:
59
54
script :
60
55
# Travis CI sets NVM_NODEJS_ORG_MIRROR, but it makes node-gyp fail to download headers for nightly builds.
61
56
- unset NVM_NODEJS_ORG_MIRROR
57
+ - NODEJS_MAJOR_VERSION=$(node -p "process.versions.node.match(/\d+/)[0]")
62
58
63
- - npm test $NPMOPT
59
+ - |
60
+ if [ ${NODEJS_MAJOR_VERSION} -gt 11 ]; then
61
+ npm test
62
+ else
63
+ npm test $NPMOPT --NAPI_VERSION=$(node -p "process.versions.napi")
64
+ fi
64
65
after_success :
65
66
- cpp-coveralls --gcov-options '\-lp' --build-root test/build --exclude test
Original file line number Diff line number Diff line change 1
- #define NAPI_EXPERIMENTAL
2
1
#include " napi.h"
3
2
4
3
using namespace Napi ;
You can’t perform that action at this time.
0 commit comments