Skip to content

Commit 21ec623

Browse files
committed
add simple loader test
1 parent dce86db commit 21ec623

1 file changed

Lines changed: 14 additions & 13 deletions

File tree

ci/install.sh

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,22 +36,23 @@ for ver in $NODEJS_VERSIONS; do
3636

3737
source ci/$OS/node_version.sh $ver;
3838

39-
if [ $? -ne 0 ]; then
40-
echo "could not switch to node $ver";
41-
exit 1;
42-
fi;
43-
4439
cd node-canvas
45-
node-gyp rebuild
4640

47-
if [ $? -eq 0 ]; then
48-
cd ..
49-
source ci/$OS/bundle.sh;
50-
source ci/tarball.sh $CANVAS_PREBUILT_VERSION;
51-
else
41+
node-gyp rebuild || {
5242
echo "error building in nodejs version $ver"
53-
cd ..
54-
fi
43+
exit 1;
44+
}
45+
46+
cd ..
47+
48+
source ci/$OS/bundle.sh;
49+
50+
node -e "require('./node-canvas')" || {
51+
echo "error loading binary";
52+
exit 1;
53+
}
54+
55+
source ci/tarball.sh $CANVAS_PREBUILT_VERSION;
5556
done;
5657

5758
echo "------------ Releasing with release.js ------------"

0 commit comments

Comments
 (0)