1 |
|
2 |
|
3 | set -xe
|
4 |
|
5 | echo "Running on $(node -v)"
|
6 |
|
7 | # Cleanup
|
8 | rm -rf node_modules build-tmp-* lib/binding
|
9 |
|
10 | # Install build dependencies
|
11 | if [ -f /etc/alpine-release ]; then
|
12 | apk add --no-cache --virtual .build-deps make gcc g++ python3
|
13 | fi
|
14 |
|
15 | su node -c "npm test; npx node-pre-gyp package"
|