From 3a329a95f021d8554dff33a703877cd25ee40ec1 Mon Sep 17 00:00:00 2001 From: Sean Mac Gillicuddy Date: Thu, 20 Jun 2019 11:42:45 +0100 Subject: [PATCH] Prevent builds of pushed branches unless it is a tag --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index e0d992ab7..c903fbffe 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,6 +8,8 @@ env: global: - ANDROID_TARGET=android-22 - ANDROID_ABI=armeabi-v7a + - +if: type != push OR tag IS present before_install: - openssl aes-256-cbc -K $encrypted_82adfa9c3806_key -iv $encrypted_82adfa9c3806_iv -in secrets.tar.enc -out secrets.tar -d @@ -79,7 +81,7 @@ deploy: file_glob: true skip_cleanup: true overwrite: true -# body: "$APP_CHANGELOG" broken because travis can't escape newlines + #body: "$APP_CHANGELOG" broken because travis can't escape newlines https://github.com/travis-ci/dpl/issues/155 draft: true on: tags: true