Skip to content

Commit

Permalink
rename release.sh to tarball.sh, more logging
Browse files Browse the repository at this point in the history
"release" did not describe what it really did
  • Loading branch information
chearon committed Nov 1, 2018
1 parent 8b0e174 commit c6493c3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ci/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ for ver in $NODEJS_VERSIONS; do
if [ $? -eq 0 ]; then
cd ..
source ci/$OS/bundle.sh;
source ci/release.sh;
source ci/tarball.sh;
else
echo "error building in nodejs version $ver"
cd ..
Expand Down
8 changes: 6 additions & 2 deletions ci/release.sh → ci/tarball.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ FILENAME=$(
).tar.gz;

# Zip up the release
tar -C node-canvas/build -czf $FILENAME Release/ || {
tar -C node-canvas/build -czf $FILENAME Release/;

if [ $? -ne 0 ]; then
echo "failed to make tarball $FILENAME from node-canvas/build"
exit 1;
}
else
echo "created release tarball $FILENAME";
fi

0 comments on commit c6493c3

Please # to comment.