Skip to content

Commit

Permalink
Merge pull request #6 from nisrulz/develop
Browse files Browse the repository at this point in the history
Only run deploy stage if tag is present and type is not pull request
  • Loading branch information
nisrulz authored May 4, 2020
2 parents 0b953b1 + 1bf4357 commit 292b0f7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,17 @@ 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
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

Expand Down

0 comments on commit 292b0f7

Please sign in to comment.