aboutsummaryrefslogtreecommitdiffstats
path: root/build-aux
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2016-04-06 01:04:43 +0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2016-04-06 01:04:43 +0200
commitfb15c8477e178abeb72e196f77da168e956768bf (patch)
tree2f9c223aaba44135e3503a210e80fa61159ad603 /build-aux
parentc7b4bc4d64a3ce669e54b7c7dae87527d9ee3123 (diff)
downloadblogc-fb15c8477e178abeb72e196f77da168e956768bf.tar.gz
blogc-fb15c8477e178abeb72e196f77da168e956768bf.tar.bz2
blogc-fb15c8477e178abeb72e196f77da168e956768bf.zip
travis: trying to fix deploy
Diffstat (limited to 'build-aux')
-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