aboutsummaryrefslogtreecommitdiffstats
path: root/build-aux/travis-deploy.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build-aux/travis-deploy.sh')
-rwxr-xr-xbuild-aux/travis-deploy.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/build-aux/travis-deploy.sh b/build-aux/travis-deploy.sh
index 71469ff..0ef28bf 100755
--- a/build-aux/travis-deploy.sh
+++ b/build-aux/travis-deploy.sh
@@ -2,6 +2,21 @@
set -e
+if [[ "x${TRAVIS_PULL_REQUEST}" != "xfalse" ]]; then
+ echo "This is a pull request. skipping deploy ..."
+ exit 0
+fi
+
+if [[ "x${TRAVIS_BRANCH}" != "xmaster" ]] && [[ "x${TRAVIS_TAG}" != xv* ]]; then
+ echo "This isn't master branch nor a valid tag. skipping deploy ..."
+ exit 0
+fi
+
+if [[ "x${CC}" != "xgcc" ]] || [[ "x${TARGET}" = "xvalgrind" ]]; then
+ echo "Invalid target for deploy. skipping ..."
+ exit 0
+fi
+
if [[ ! -d build ]]; then
echo "Build directory not found."
exit 1