Skip to content
This repository was archived by the owner on Apr 16, 2021. It is now read-only.

Commit 84d3946

Browse files
committed
NF: add machinery to change containers for daily
Add logic to upload to different container for daily build.
1 parent de28f49 commit 84d3946

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.travis.yml

+13-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
env:
22
global:
33
- REPO_DIR=matplotlib
4+
# Also see DAILY_COMMIT below
45
- BUILD_COMMIT=v2.0.0
56
# These variables filled in further below
67
- BUILD_DEPENDS=
@@ -15,6 +16,8 @@ env:
1516
# travis encrypt -r MacPython/matplotlib-wheels WHEELHOUSE_UPLOADER_SECRET=<the api key>
1617
- secure:
1718
"hKf07zeIRvEMH9qWUkkmFHu768HZdI+EOCO99KjsAjbwa7QdUSwZ9XZKCcyNiym5iyrIBWHywyEtO0wk/LsTxhNZGZQP0nJbyTSSy4VGMQmpIx1sVmDKtrykVJaxCfXqpYYDttBTC4TyvxW/3LyuqBfbU14R4uoSFY/mK+QIJ0A="
19+
# Daily commit, if present, overrides BUILD_COMMIT
20+
# - DAILY_COMMIT=master
1821

1922
language: python
2023
# Default Python version is usually 2.7
@@ -95,6 +98,13 @@ matrix:
9598
- NP_TEST_DEP="1.11.3"
9699

97100
before_install:
101+
- if [ -z "$DAILY_COMMIT" ]; then
102+
CONTAINER=wheels;
103+
UPLOAD_ARGS="--no-update-index";
104+
else
105+
CONTAINER="pre-release";
106+
BUILD_COMMIT=$DAILY_COMMIT;
107+
fi
98108
- BUILD_DEPENDS="numpy==$NP_BUILD_DEP"
99109
- source multibuild/common_utils.sh
100110
- source multibuild/travis_steps.sh
@@ -115,10 +125,10 @@ script:
115125
- ulimit -n 4096
116126
- install_run $PLAT
117127

118-
# after_success:
128+
after_success:
119129
# Upload wheels to Rackspace container
120130
- pip install wheelhouse-uploader
121131
- python -m wheelhouse_uploader upload --local-folder
122132
${TRAVIS_BUILD_DIR}/wheelhouse/
123-
--no-update-index
124-
wheels
133+
$UPLOAD_ARGS
134+
$CONTAINER

0 commit comments

Comments
 (0)