We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dce86db commit 21ec623Copy full SHA for 21ec623
1 file changed
ci/install.sh
@@ -36,22 +36,23 @@ for ver in $NODEJS_VERSIONS; do
36
37
source ci/$OS/node_version.sh $ver;
38
39
- if [ $? -ne 0 ]; then
40
- echo "could not switch to node $ver";
41
- exit 1;
42
- fi;
43
-
44
cd node-canvas
45
- node-gyp rebuild
46
47
- if [ $? -eq 0 ]; then
48
- cd ..
49
- source ci/$OS/bundle.sh;
50
- source ci/tarball.sh $CANVAS_PREBUILT_VERSION;
51
- else
+ node-gyp rebuild || {
52
echo "error building in nodejs version $ver"
53
54
- fi
+ exit 1;
+ }
+
+ cd ..
+ source ci/$OS/bundle.sh;
+ node -e "require('./node-canvas')" || {
+ echo "error loading binary";
55
+ source ci/tarball.sh $CANVAS_PREBUILT_VERSION;
56
done;
57
58
echo "------------ Releasing with release.js ------------"
0 commit comments