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
/
.travis.yml
91 lines (86 loc) · 3.21 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
version: ~> 1.0
env:
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: xenial
services: docker
jobs:
- 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=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
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
- |
if [ ${TRAVIS_OS_NAME} = "osx" ]; then
travis_wait 60 build_wheel $REPO_DIR
else
build_wheel $REPO_DIR
fi
script:
- 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