summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Grandin <grandinp@gmail.com>2018-04-22 20:29:34 -0700
committerPierre Grandin <grandinp@gmail.com>2018-04-22 20:29:34 -0700
commit426616f40e46f31ae45e2fe124b988de422713db (patch)
treecabeef7afc47f51b19948d11f79272b34eaf1bfe
parent8fbc9447140adecc721ec7e3e6c6603fa4e5f9b7 (diff)
downloadnavit-426616f40e46f31ae45e2fe124b988de422713db.tar.gz
upload to playstore from the official trunk only
-rw-r--r--ci/publish.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/ci/publish.sh b/ci/publish.sh
index 4e59dd213..b3c0a6298 100644
--- a/ci/publish.sh
+++ b/ci/publish.sh
@@ -1,4 +1,16 @@
#!/bin/sh
+
+if [ -z $CI ];then
+ echo "This Script needs to be run by CI"
+fi
+if [ -z $CIRCLECI ];then
+ echo "This Script needs to be run on CircleCI"
+fi
+if [[ "${CIRCLE_PROJECT_USERNAME}" != "navit-gps" || "${CIRCLE_BRANCH}" != "trunk" ]]; then
+ echo "Only trunk on navit-gps may upload to the Play Store"
+ exit 0
+fi
+
set -e
ARCH="arm"