aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/mac/after_success.sh
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-11-11 18:48:27 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-11-14 21:39:15 -0800
commit9c3a45af956dbf529a47e517771797d81df4a902 (patch)
treec7a9ce0a04405eed2021ab220ae6656959d3b65c /scripts/mac/after_success.sh
parent65e65272ce297dbbece60860d9ffcab148dec5e6 (diff)
downloadsubsurface-9c3a45af956dbf529a47e517771797d81df4a902.tar.gz
Travis: add Mac build
This adds a -skip-googlemaps option to the build script since for some reason trying to build the googlemaps plugin in the Travis mac environment causes an error with a missing stack-protector-strong feature. The build relies on a custom build Qt and a cached homebrew environment. And the result is of course not a DMG with a signed app but a zip file with an unsigned app - so it's a bit harder to consume. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'scripts/mac/after_success.sh')
-rw-r--r--scripts/mac/after_success.sh21
1 files changed, 21 insertions, 0 deletions
diff --git a/scripts/mac/after_success.sh b/scripts/mac/after_success.sh
new file mode 100644
index 000000000..221649e4e
--- /dev/null
+++ b/scripts/mac/after_success.sh
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+if [ ! -z $TRAVIS_BRANCH ] && [ "$TRAVIS_BRANCH" != "master" ] ; then
+ export UPLOADTOOL_SUFFIX=$TRAVIS_BRANCH
+fi
+
+# same git version magic as in the Makefile
+# for the naming of the app
+export VERSION=$(cd ${TRAVIS_BUILD_DIR}; ./scripts/get-version linux)
+
+
+cd ${TRAVIS_BUILD_DIR}/build
+zip -r Subsurface-$VERSION.app.zip Subsurface.app
+
+echo "Submitting the folloing App for continuous build release:"
+ls -lh Subsurface-$VERSION.app.zip
+
+# get and run the upload script
+wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
+bash ./upload.sh Subsurface-$VERSION.app.zip
+