diff options
| author | Lex Neva <github.com@lexneva.name> | 2018-01-23 21:56:48 -0500 |
|---|---|---|
| committer | Lex Neva <github.com@lexneva.name> | 2018-01-23 21:56:48 -0500 |
| commit | 858be29401fad36ef6ca86be5b4179604873fe33 (patch) | |
| tree | f5a95a7f0aeddab89cbcbd09e0b75622139dd0a4 | |
| parent | acaebaa956006a0fa064c2361b47f902a8a50b77 (diff) | |
trying for a single pre-release per branch
| -rw-r--r-- | .travis.yml | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml index b22a4d13..9551181b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,7 +13,7 @@ matrix: - python: 2.7 sudo: required env: BUILD=true - if: tag is present + if: tag =~ ^v[0-9.]+$ OR branch != master cache: pip install: - | @@ -75,6 +75,9 @@ script: notifications: on_success: never on_failure: never +before_deploy: + - git tag -f dev-build-${TRAVIS_BRANCH} + - git push -f https://${TRAVIS_REPO_SLUG%/*}:${GITHUB_API_KEY}@github.com/${TRAVIS_REPO_SLUG}.git dev-build-${TRAVIS_BRANCH} deploy: - provider: releases api_key: @@ -95,8 +98,10 @@ deploy: file_glob: true skip_cleanup: true prerelease: true - name: "development build $TRAVIS_TAG" + overwrite: true + target_commitish: $TRAVIS_COMMIT + name: "development build of '$TRAVIS_BRANCH'" + body: Automatic development build of $TRAVIS_BRANCH ($TRAVIS_COMMIT) built on $(date +'%F %T %Z'). on: - tags: true all_branches: true - condition: '(-n $BUILD) && ! ("$TRAVIS_TAG" =~ ^v[0-9.]+$)' + condition: '(-n $BUILD) && ! ("$TRAVIS_TAG" =~ ^v[0-9.]+$) && ! ("$TRAVIS_BRANCH" = master)' |
