This repository has been archived by the owner on Mar 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
fix: Update .travis.yml format #19
Merged
ahartikainen
merged 6 commits into
stan-dev:master
from
riddell-stan:feature/new-travis-format
Aug 11, 2020
Merged
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
a899e40
fix: Update .travis.yml format
riddell-stan 97a4cce
fix: Minor updates to config
riddell-stan d13ebea
fix: Only use travis_wait with macos
riddell-stan 14a817f
fix: Remove custom gcc
riddell-stan e1e00cd
Use manylinux1
ahartikainen c3b0251
fix: Remove unsupported versions
riddell-stan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[submodule "multibuild"] | ||
path = multibuild | ||
url = https://github.com/riddell-stan/multibuild | ||
url = https://github.com/matthew-brett/multibuild.git | ||
[submodule "pystan"] | ||
path = pystan | ||
url = https://github.com/stan-dev/pystan |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,109 +1,111 @@ | ||
version: ~> 1.0 | ||
env: | ||
global: | ||
- REPO_DIR=pystan | ||
- BUILD_COMMIT=v2.19.1.1 | ||
- BUILD_DEPENDS=Cython | ||
- TEST_DEPENDS= | ||
- PLAT=x86_64 | ||
- UNICODE_WIDTH=32 | ||
- NP_BUILD_DEP=1.8.2 | ||
- WHEELHOUSE_UPLOADER_USERNAME=pystan-worker | ||
- WHEELHOUSE_UPLOADER_REGION=IAD | ||
# custom manylinux image with newer gcc | ||
- DOCKER_IMAGE=tktechdocker/manylinux:gcc8.3.0 | ||
# Following generated with | ||
# travis encrypt -r stan-dev/pystan-wheels WHEELHOUSE_UPLOADER_SECRET=<the api key> | ||
- secure: "RPK/AsxmDNiiJ5WZwRr8oN5Ybj+/IaCNp/zF8ZwOO4XXG0RF56n1fGeqW+tfHhsOjjwBZtYmQSqSDrcd3cQw564yoBpbTy1YIFPMVP5gELFE4xw9A7KGOcGJ22RMNbqAq4esl8YqOLVjLsFQbx0aCrcRripnj0tjK/6nOemYt6+Oo8rm2SZjRnclmE7UsVSoYYll/cE+H/wTLZo3nHnRl6JZUcTa5dQ6i/GUR+kMzA7u4yGI6n16THeBIVI6dAOgabmInahZad6v7EwUWGZrwUHBmQmZhqMkPU9YVEd3I4MUgJ/9acl4ezlQuEZ4CfagSKqWMUpa1nqjsuNf374wZRi3jv4urTd6ouk+32TkFBQDHrBpdSCRgzn1Vp9Pogs4sThIgUOSEDx90nS9lhmQ5EFm8fIz2W4h1Relo0ra+FKvahIBpMCSW20Ozty4GiyY4bIYt9vzSZCblp5HlxWF5UW1zRIExtJvSipSEHElk8SvFryunFacqt2T36OeaYhp2mA5LGqTcNWMTTNsM4Z0Vw7CzeB9KOgTT1FRKVjM9oiVO9blAj0TkseBYnR0PuQ6EdHmNq8bO+oupaafca/cq6j7GRiv5n7pL66LV75xv+8gQ4VpLY6Z31+DRZ74eh/nobsIJobYz6H5N8wjhuGZAtMHIeisZrdjWLOGiqGa9KY=" | ||
|
||
global: | ||
- REPO_DIR=pystan | ||
- BUILD_COMMIT=v2.19.1.1 | ||
- BUILD_DEPENDS=Cython | ||
- TEST_DEPENDS= | ||
- MB_ML_VER=2014 | ||
- DOCKER_TEST_IMAGE=multibuild/xenial_x86_64 | ||
- PLAT=x86_64 | ||
- UNICODE_WIDTH=32 | ||
- NP_BUILD_DEP=1.8.2 | ||
- WHEELHOUSE_UPLOADER_USERNAME=pystan-worker | ||
- WHEELHOUSE_UPLOADER_REGION=IAD | ||
- DOCKER_IMAGE=quay.io/pypa/manylinux1_x86_64 | ||
# Following generated with | ||
# travis encrypt -r stan-dev/pystan-wheels WHEELHOUSE_UPLOADER_SECRET=<the api key> | ||
- secure: "RPK/AsxmDNiiJ5WZwRr8oN5Ybj+/IaCNp/zF8ZwOO4XXG0RF56n1fGeqW+tfHhsOjjwBZtYmQSqSDrcd3cQw564yoBpbTy1YIFPMVP5gELFE4xw9A7KGOcGJ22RMNbqAq4esl8YqOLVjLsFQbx0aCrcRripnj0tjK/6nOemYt6+Oo8rm2SZjRnclmE7UsVSoYYll/cE+H/wTLZo3nHnRl6JZUcTa5dQ6i/GUR+kMzA7u4yGI6n16THeBIVI6dAOgabmInahZad6v7EwUWGZrwUHBmQmZhqMkPU9YVEd3I4MUgJ/9acl4ezlQuEZ4CfagSKqWMUpa1nqjsuNf374wZRi3jv4urTd6ouk+32TkFBQDHrBpdSCRgzn1Vp9Pogs4sThIgUOSEDx90nS9lhmQ5EFm8fIz2W4h1Relo0ra+FKvahIBpMCSW20Ozty4GiyY4bIYt9vzSZCblp5HlxWF5UW1zRIExtJvSipSEHElk8SvFryunFacqt2T36OeaYhp2mA5LGqTcNWMTTNsM4Z0Vw7CzeB9KOgTT1FRKVjM9oiVO9blAj0TkseBYnR0PuQ6EdHmNq8bO+oupaafca/cq6j7GRiv5n7pL66LV75xv+8gQ4VpLY6Z31+DRZ74eh/nobsIJobYz6H5N8wjhuGZAtMHIeisZrdjWLOGiqGa9KY=" | ||
|
||
language: python | ||
cache: | ||
- pip | ||
python: 3.5 | ||
dist: trusty | ||
dist: xenial | ||
services: docker | ||
|
||
matrix: | ||
exclude: | ||
# Exclude the default Python 3.5 build | ||
- python: 3.5 | ||
include: | ||
- os: linux | ||
env: | ||
- MB_PYTHON_VERSION=2.7 | ||
- os: linux | ||
env: | ||
- MB_PYTHON_VERSION=2.7 | ||
- UNICODE_WIDTH=16 | ||
- os: linux | ||
env: | ||
- MB_PYTHON_VERSION=3.5 | ||
- NP_BUILD_DEP="1.9.3" | ||
- os: linux | ||
env: | ||
- MB_PYTHON_VERSION=3.6 | ||
- NP_BUILD_DEP="1.9.3" | ||
- os: linux | ||
env: | ||
- MB_PYTHON_VERSION=3.7 | ||
- NP_BUILD_DEP=1.14.5 | ||
- os: linux | ||
env: | ||
- MB_PYTHON_VERSION=3.8 | ||
- NP_BUILD_DEP=1.14.5 | ||
- os: osx | ||
language: objective-c | ||
env: | ||
- MB_PYTHON_VERSION=2.7 | ||
- os: osx | ||
language: objective-c | ||
env: | ||
- MB_PYTHON_VERSION=3.5 | ||
- NP_BUILD_DEP="1.9.3" | ||
- os: osx | ||
language: objective-c | ||
env: | ||
- MB_PYTHON_VERSION=3.6 | ||
- NP_BUILD_DEP="1.9.3" | ||
- os: osx | ||
language: generic | ||
env: | ||
- MB_PYTHON_VERSION=3.7 | ||
- NP_BUILD_DEP=1.14.5 | ||
- os: osx | ||
language: generic | ||
env: | ||
- MB_PYTHON_VERSION=3.8 | ||
- NP_BUILD_DEP=1.14.5 | ||
jobs: | ||
- os: linux | ||
env: | ||
- MB_PYTHON_VERSION=2.7 | ||
- os: linux | ||
env: | ||
- MB_PYTHON_VERSION=2.7 | ||
- UNICODE_WIDTH=16 | ||
- os: linux | ||
env: | ||
- MB_PYTHON_VERSION=3.5 | ||
- NP_BUILD_DEP="1.9.3" | ||
- os: linux | ||
env: | ||
- MB_PYTHON_VERSION=3.6 | ||
- NP_BUILD_DEP="1.9.3" | ||
- os: linux | ||
env: | ||
- MB_PYTHON_VERSION=3.7 | ||
- NP_BUILD_DEP=1.14.5 | ||
- os: linux | ||
env: | ||
- MB_PYTHON_VERSION=3.8 | ||
- NP_BUILD_DEP=1.14.5 | ||
- os: osx | ||
language: objective-c | ||
env: | ||
- MB_PYTHON_VERSION=2.7 | ||
- os: osx | ||
language: objective-c | ||
env: | ||
- MB_PYTHON_VERSION=3.5 | ||
- NP_BUILD_DEP="1.9.3" | ||
- os: osx | ||
language: objective-c | ||
env: | ||
- MB_PYTHON_VERSION=3.6 | ||
- NP_BUILD_DEP="1.9.3" | ||
- os: osx | ||
language: generic | ||
env: | ||
- MB_PYTHON_VERSION=3.7 | ||
- NP_BUILD_DEP=1.14.5 | ||
- os: osx | ||
language: generic | ||
env: | ||
- MB_PYTHON_VERSION=3.8 | ||
- NP_BUILD_DEP=1.14.5 | ||
before_install: | ||
- BUILD_DEPENDS="numpy==$NP_BUILD_DEP ${BUILD_DEPENDS}" | ||
- source multibuild/common_utils.sh | ||
- source multibuild/travis_steps.sh | ||
- before_install | ||
- BUILD_DEPENDS="numpy==$NP_BUILD_DEP ${BUILD_DEPENDS}" | ||
- source multibuild/common_utils.sh | ||
- source multibuild/travis_steps.sh | ||
- before_install | ||
|
||
install: | ||
# Maybe get and clean and patch source | ||
- clean_code $REPO_DIR $BUILD_COMMIT | ||
# remove unused files from pystan/pystan/stan to save space and avoid problems on manylinux1 | ||
# these cleaning steps may be removed after manylinux1 is retired. See this issue for more: | ||
# https://github.com/pypa/auditwheel/issues/145 | ||
# cleanup steps start | ||
- find pystan/pystan/stan/lib -type d -iname doc -print0 | xargs -0 rm -rf | ||
- find pystan/pystan/stan/lib/stan_math/lib -type d -name test -print0 | xargs -0 rm -rf | ||
- find pystan/pystan/stan/lib/stan_math/lib -maxdepth 2 -type d -name libs -print0 | xargs -0 rm -rf | ||
- find pystan/pystan/stan/lib/stan_math/lib -maxdepth 2 -type d -name tools -print0 | xargs -0 rm -rf | ||
# cleanup steps end | ||
# osx wheels take a particularly long time to build | ||
- travis_wait 40 build_wheel $REPO_DIR $PLAT | ||
# Maybe get and clean and patch source | ||
- clean_code $REPO_DIR $BUILD_COMMIT | ||
# remove unused files from pystan/pystan/stan to save space and avoid problems on manylinux1 | ||
# these cleaning steps may be removed after manylinux1 is retired. See this issue for more: | ||
# https://github.com/pypa/auditwheel/issues/145 | ||
# cleanup steps start | ||
- find pystan/pystan/stan/lib -type d -iname doc -print0 | xargs -0 rm -rf | ||
- find pystan/pystan/stan/lib/stan_math/lib -type d -name test -print0 | xargs -0 rm -rf | ||
- find pystan/pystan/stan/lib/stan_math/lib -maxdepth 2 -type d -name libs -print0 | xargs -0 rm -rf | ||
- find pystan/pystan/stan/lib/stan_math/lib -maxdepth 2 -type d -name tools -print0 | xargs -0 rm -rf | ||
# cleanup steps end | ||
# osx wheels take a particularly long time to build | ||
- | | ||
if [ ${TRAVIS_OS_NAME} = "osx" ]; then | ||
travis_wait 60 build_wheel $REPO_DIR | ||
else | ||
build_wheel $REPO_DIR | ||
fi | ||
|
||
script: | ||
- install_run $PLAT | ||
- install_run $PLAT | ||
|
||
after_success: | ||
# Upload wheels to Rackspace container | ||
- pip install wheelhouse-uploader | ||
- travis_wait 40 python -m wheelhouse_uploader upload --local-folder | ||
${TRAVIS_BUILD_DIR}/wheelhouse/ | ||
--no-update-index | ||
--region=${WHEELHOUSE_UPLOADER_REGION} | ||
wheels | ||
# Upload wheels to Rackspace container | ||
- pip install wheelhouse-uploader | ||
- travis_wait 40 python -m wheelhouse_uploader upload --local-folder | ||
${TRAVIS_BUILD_DIR}/wheelhouse/ | ||
--no-update-index | ||
--region=${WHEELHOUSE_UPLOADER_REGION} | ||
wheels |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
# See multibuild/README.rst | ||
export MACOSX_DEPLOYMENT_TARGET=10.9 | ||
export CFLAGS="-static-libstdc++" | ||
ahartikainen marked this conversation as resolved.
Show resolved
Hide resolved
|
||
export CC=/usr/local/gcc-8.3.0/bin/gcc-8.3.0 | ||
export CXX=/usr/local/gcc-8.3.0/bin/g++-8.3.0 |
Submodule multibuild
updated
27 files
+7 −0 | .appveyor.yml | |
+26 −0 | .gitignore | |
+78 −83 | .travis.yml | |
+1 −1 | LICENSE | |
+89 −66 | README.rst | |
+177 −21 | common_utils.sh | |
+14 −3 | configure_build.sh | |
+11 −5 | docker_build_wrap.sh | |
+7 −0 | docker_test_wrap.sh | |
+6 −6 | install_python.ps1 | |
+19 −15 | library_builders.sh | |
+6 −33 | manylinux_utils.sh | |
+44 −56 | osx_utils.sh | |
+5 −6 | supported_wheels.py | |
+7 −0 | tests/config.sh | |
+11 −3 | tests/test_common_utils.sh | |
+2 −4 | tests/test_fill_pypy_ver.sh | |
+4 −2 | tests/test_fill_pyver.sh | |
+6 −2 | tests/test_library_builders.sh | |
+5 −2 | tests/test_manylinux_utils.sh | |
+10 −0 | tests/test_manylinux_utils_docker.sh | |
+27 −4 | tests/test_multibuild.sh | |
+27 −5 | tests/test_osx_utils.sh | |
+4 −4 | tests/test_python_install.sh | |
+38 −3 | tests/test_supported_wheels.sh | |
+10 −3 | travis_linux_steps.sh | |
+3 −0 | travis_osx_steps.sh |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Latest manylinux2014 has dropped support for 2.7. Not sure about manylinux1.
And 2.7 is eol, and 2.19.1 wheel is in pypi.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's get rid of it then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you want me to add a commit for it, or do you want to do it yourself?