diff --git a/.travis.yml b/.travis.yml index 666b88ad..551093ba 100644 --- a/.travis.yml +++ b/.travis.yml @@ -34,8 +34,22 @@ install: true script: - npm test - - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then docker run -w /src --entrypoint /bin/sh -v`pwd`:/src "node:${TRAVIS_NODE_VERSION}-alpine" test_alpine.sh; fi; + - ./node_modules/.bin/node-pre-gyp configure + - ./node_modules/.bin/node-pre-gyp build + - ./node_modules/.bin/node-pre-gyp package + - | + if [[ "$TRAVIS_OS_NAME" == "linux" ]] + then + docker run -w /src --entrypoint /bin/sh -v`pwd`:/src "node:${TRAVIS_NODE_VERSION}-alpine" test_alpine.sh + fi after_success: - - if [[ $TRAVIS_TAG =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-\w)? ]]; then echo "Publishing"; npm install node-pre-gyp-github@1.4.3; ./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; + - ls + - | + if [[ $TRAVIS_TAG =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-\w)? ]] + then + echo "Publishing" + npm install node-pre-gyp-github@1.4.3 + ./node_modules/.bin/node-pre-gyp-github publish --release + fi diff --git a/test_alpine.sh b/test_alpine.sh index 609b5fde..f23af5c8 100755 --- a/test_alpine.sh +++ b/test_alpine.sh @@ -6,3 +6,7 @@ echo "Running on $(node -v)" apk add make g++ python npm test --unsafe-perm + +./node_modules/.bin/node-pre-gyp configure +./node_modules/.bin/node-pre-gyp build +./node_modules/.bin/node-pre-gyp package