Skip to content

Commit

Permalink
Resolve git branch if not supplied
Browse files Browse the repository at this point in the history
  • Loading branch information
benfortuna committed Jul 11, 2017
1 parent 3fcecf5 commit 4778a40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -20,7 +20,7 @@ script:
- ./gradlew build jacocoTestReport
after_success:
- bash <(curl -s https://codecov.io/bash)
- GIT_BRANCH=$TRAVIS_BRANCH etc/scripts/tag-release.sh
- etc/scripts/tag-release.sh
#deploy:
# provider: releases
# api_key:
Expand Down
2 changes: 1 addition & 1 deletion etc/scripts/tag-release.sh
@@ -1,3 +1,3 @@
#!/usr/bin/env bash
GIT_BRANCH=${GIT_BRANCH:-$(git rev-parse --abbrev-ref HEAD)}
GIT_BRANCH=${TRAVIS_BRANCH:-$(git rev-parse --abbrev-ref HEAD)}
[[ $GIT_BRANCH =~ ^release ]] && ./gradlew -Pbintray_user=$BINTRAY_USER -Pbintray_key=$BINTRAY_KEY release bintrayUpload $@

0 comments on commit 4778a40

Please sign in to comment.