You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
286 B
Bash
16 lines
286 B
Bash
10 months ago
|
#!/bin/sh
|
||
|
|
||
|
set -xe
|
||
|
|
||
|
echo "Running on $(node -v)"
|
||
|
|
||
|
# Cleanup
|
||
|
rm -rf node_modules build-tmp-* lib/binding
|
||
|
|
||
|
# Install build dependencies
|
||
|
if [ -f /etc/alpine-release ]; then
|
||
|
apk add --no-cache --virtual .build-deps make gcc g++ python3
|
||
|
fi
|
||
|
|
||
|
su node -c "npm test; npx node-pre-gyp package"
|