File tree 2 files changed +15
-1
lines changed 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 1
1
language : node_js
2
2
3
+ services :
4
+ - docker
5
+
3
6
env :
4
7
- LINUX_CXX=g++-4.8
5
8
@@ -29,7 +32,10 @@ before_install:
29
32
30
33
install : true
31
34
32
- script : npm test
35
+ script :
36
+ - npm test
37
+ - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker run -it -w /src --entrypoint /bin/sh -v`pwd`:/src "node:${TRAVIS_NODE_VERSION}-alpine" test_alpine.sh; fi;
38
+
33
39
34
40
after_success :
35
41
-
if [[ $TRAVIS_TAG =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-\w)? ]]; then echo "Publishing"; npm install [email protected] ; ./node_modules/.bin/node-pre-gyp configure; ./node_modules/.bin/node-pre-gyp build; ./node_modules/.bin/node-pre-gyp package; ./node_modules/.bin/node-pre-gyp-github publish --release; fi;
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ set -xe
4
+
5
+ echo " Running on $( node -v) "
6
+
7
+ apk add make g++ python
8
+ npm test --unsafe-perm
You can’t perform that action at this time.
0 commit comments