Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

Commit

Permalink
Use named branch for release builds
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthieuDartiailh committed Mar 5, 2018
1 parent cce21a2 commit 2870ad0
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
env:
global:
# Daily commit is used on master branch and build commit on named
# branches
- BUILD_COMMIT=4c4405e2f8909162fce1be74243c7bd94adda54b
- DAILY_COMMIT=master
- REPO_DIR=kiwi
- PLAT=x86_64
- UNICODE_WIDTH=32
Expand Down Expand Up @@ -76,6 +79,13 @@ matrix:
- MB_PYTHON_VERSION=3.6

before_install:
- if [ "$TRAVIS_BRANCH" == "master" ]; then
CONTAINER="pre-release";
BUILD_COMMIT=${DAILY_COMMIT:-$BUILD_COMMIT};
else
CONTAINER=wheels;
UPLOAD_ARGS="--no-update-index";
fi
- source multibuild/common_utils.sh
- source multibuild/travis_steps.sh
- before_install
Expand All @@ -93,5 +103,5 @@ after_success:
- pip install wheelhouse-uploader
- python -m wheelhouse_uploader upload --local-folder
${TRAVIS_BUILD_DIR}/wheelhouse/
--no-update-index
wheels
$UPLOAD_ARGS
$CONTAINER

0 comments on commit 2870ad0

Please sign in to comment.