Skip to content

Commit

Permalink
build(travis): handle stages sequential
Browse files Browse the repository at this point in the history
  • Loading branch information
antonydenyer committed Sep 27, 2019
1 parent 5e250e7 commit 25fa5d0
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,14 @@ jobs:
include:
- stage: build master
script:
- ./gradlew spotlessCheck
- ./gradlew check jacocoTestReport
- ./gradlew spotlessCheck check jacocoTestReport
if: branch = master
- stage: build release
- stage: release github
if: branch =~ /release/
script:
- export VERSION=${TRAVIS_BRANCH#"release/"}
- echo "building release ${VERSION}"
- ./gradlew check distZip -Pversion=${VERSION}
- ./scripts/github-release.sh
- ./scripts/homebrew-release.sh
script: "./gradlew check distZip -Pversion=${TRAVIS_BRANCH#"release/"} && ./scripts/github-release.sh"
- stage: release homebrew
if: branch =~ /release/
script: "./scripts/homebrew-release.sh"
after_success:
- bash <(curl -s https://codecov.io/bash)
env:
Expand Down

0 comments on commit 25fa5d0

Please sign in to comment.