Skip to content

Commit

Permalink
[CI] build non-master branches (#8)
Browse files Browse the repository at this point in the history
* travis: allow building non-master branches

Also add branch info to tag.

* fixup! travis: allow building non-master branches

Tag deploy with PR's branch if available

* squash! fixup! travis: allow building non-master branches

* retrigger build to see tag

* fixup! retrigger build to see tag
  • Loading branch information
hdhoang authored and ah- committed Mar 2, 2018
1 parent e94854e commit 575c7bb
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,10 @@ before_cache:
# Travis can't cache files that are not readable by "others"
- chmod -R a+r $HOME/.cargo

branches:
only:
- master

before_deploy:
- git config --local user.name "Andreas Heider"
- git config --local user.email "[email protected]"
- git tag "$(date +'%Y-%m-%d')-$TRAVIS_BUILD_NUMBER-$(git log --format=%h -1)"
- git tag "$(date +'%Y-%m-%d')-$TRAVIS_BUILD_NUMBER-${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}-$(git log --format=%h -1)"

deploy:
provider: releases
Expand Down

0 comments on commit 575c7bb

Please sign in to comment.