Skip to content

Commit a0a88a8

Browse files
committed
Update script for packaging inside docker
1 parent 1969d96 commit a0a88a8

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

test-docker.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/sh
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"

test_alpine.sh

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)