Skip to content

Commit e01e78a

Browse files
committed
Add alpine-linux to CI
1 parent bbb6b2d commit e01e78a

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.travis.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
language: node_js
22

3+
services:
4+
- docker
5+
36
env:
47
- LINUX_CXX=g++-4.8
58

@@ -29,7 +32,10 @@ before_install:
2932

3033
install: true
3134

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+
3339

3440
after_success:
3541
- 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;

test_alpine.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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

0 commit comments

Comments
 (0)