Skip to content

Commit 9758e68

Browse files
committed
Prepare for uploading releases from inside docker
1 parent 1511821 commit 9758e68

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

.travis.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,22 @@ install: true
3434

3535
script:
3636
- npm test
37-
- 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;
37+
- ./node_modules/.bin/node-pre-gyp configure
38+
- ./node_modules/.bin/node-pre-gyp build
39+
- ./node_modules/.bin/node-pre-gyp package
40+
- |
41+
if [[ "$TRAVIS_OS_NAME" == "linux" ]]
42+
then
43+
docker run -w /src --entrypoint /bin/sh -v`pwd`:/src "node:${TRAVIS_NODE_VERSION}-alpine" test_alpine.sh
44+
fi
3845
3946
4047
after_success:
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;
48+
- ls
49+
- |
50+
if [[ $TRAVIS_TAG =~ ^v[0-9]+\.[0-9]+\.[0-9]+(-\w)? ]]
51+
then
52+
echo "Publishing"
53+
npm install [email protected]
54+
./node_modules/.bin/node-pre-gyp-github publish --release
55+
fi

test_alpine.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@ echo "Running on $(node -v)"
66

77
apk add make g++ python
88
npm test --unsafe-perm
9+
10+
./node_modules/.bin/node-pre-gyp configure
11+
./node_modules/.bin/node-pre-gyp build
12+
./node_modules/.bin/node-pre-gyp package

0 commit comments

Comments
 (0)