UNPKG

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