From 4b96ba82a2f3d7d111c13d3e4f1a84b39e150f5d Mon Sep 17 00:00:00 2001 From: Nishant Srivastava Date: Mon, 4 May 2020 04:16:44 +0200 Subject: [PATCH 1/2] only run deploy stage if tag is present and type is not pull request --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 7f1deb1..a1d8a82 100644 --- a/.travis.yml +++ b/.travis.yml @@ -72,7 +72,7 @@ stages: - name: test_and_build if: type = pull_request - name: deploy - if: (branch = master OR tag IS present) AND type != pull_request + if: (tag IS present) AND (type != pull_request) jobs: fast_finish: true From 1bf4357979ce8fef95ad2e54a756359d7c581263 Mon Sep 17 00:00:00 2001 From: Nishant Srivastava Date: Mon, 4 May 2020 04:20:40 +0200 Subject: [PATCH 2/2] updated stage description --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index a1d8a82..2b4baf3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -78,11 +78,11 @@ jobs: fast_finish: true include: - stage: test_and_build - name: 'Unit Tests && Build' + name: 'Building codebase and running unit tests' script: - ./gradlew -q build test - stage: deploy - name: 'Deploy App' + name: 'Assemble release APK' script: - ./gradlew -q assembleRelease