Skip to content
This repository has been archived by the owner on Mar 18, 2021. It is now read-only.

fix: Update .travis.yml format #19

Merged
merged 6 commits into from
Aug 11, 2020
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitmodules
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
190 changes: 96 additions & 94 deletions .travis.yml
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
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Contributor

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?

- 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
2 changes: 0 additions & 2 deletions env_vars.sh
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