forked from opencobra/cobrapy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
107 lines (98 loc) · 2.59 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
language: python
python: 3.5
sudo: required
dist: trusty
services: docker
cache:
directories:
- $HOME/.cache/pip
addons:
apt:
packages:
- libfreetype6-dev
- libpng12-dev
git:
depth: 3
branches:
only:
- master
- devel
- devel-2
- /^[0-9]+\.[0-9]+\.[0-9]+[.0-9ab]*$/
env:
global:
- secure: "hkKBaGLvoDVgktSKR3BmX+mYlGzHw9EO11MRHtiH8D9BbdygOR9p9aSV/OxkaRWhnkSP5/0SXqVgBrvU1g5OsR6cc85UQSpJ5H5jVnLoWelIbTxMCikjxDSkZlseD7ZEWrKZjRo/ZN2qym0HRWpsir3qLpl8W25xHRv/sK7Z6g8="
- secure: "DflyBz+QiyhlhBxn4wN00xu248EJUMjKTxUZQN6wq22qV55xO3ToGJTy9i4D6OBfZGAlSXxjjKCJ2+0sAjsghBSDEK56ud3EEg/08TIo7/T8ex/C58FsGoGFz3yDBATmquClEWN8vAMrLdxwniHmQVCBZCP/phdt5dct0AUuDc8="
- PLAT=x86_64
- UNICODE_WIDTH=32
matrix:
fast_finish: true
exclude:
- python: 3.5
include:
- os: linux
python: 3.5
env:
- TOXENV=pep8
- os: linux
env:
- MB_PYTHON_VERSION=2.7
- os: linux
env:
- MB_PYTHON_VERSION=3.4
- os: linux
env:
- MB_PYTHON_VERSION=3.5
- os: linux
env:
- MB_PYTHON_VERSION=3.6
- os: osx
language: objective-c
env:
- MB_PYTHON_VERSION=2.7
- os: osx
language: objective-c
env:
- MB_PYTHON_VERSION=3.4
- os: osx
language: objective-c
env:
- MB_PYTHON_VERSION=3.5
- os: osx
language: objective-c
env:
- MB_PYTHON_VERSION=3.6
before_install:
- if [[ -n "${MB_PYTHON_VERSION}" ]]; then
(travis_retry git clone https://github.com/matthew-brett/multibuild.git && cd multibuild && git checkout edf5b691d0d565b4e65e655b983c11c883acbeca);
TEST_DEPENDS="swiglpk optlang sympy decorator cython codecov coverage numpy scipy jsonschema six pytest pytest-cov pytest-benchmark tabulate";
BUILD_DEPENDS="swiglpk optlang sympy cython numpy scipy";
source multibuild/common_utils.sh;
source multibuild/travis_steps.sh;
before_install;
fi
- pip install -U pip setuptools wheel tox
before_cache:
- set +e
install:
- if [[ -n "${MB_PYTHON_VERSION}" ]]; then
travis_retry build_wheel . $PLAT;
fi
script:
- if [[ -n "${MB_PYTHON_VERSION}" ]]; then
travis_retry install_run $PLAT;
else
pip install rstcheck Cython;
find . -name "*.rst" -exec rstcheck {} +;
tox -e "${TOXENV}";
fi
- ls ${TRAVIS_BUILD_DIR}/wheelhouse/ || echo "no wheelhouse"
deploy:
provider: script
skip_cleanup: true
script: scripts/deploy.sh
on:
branch: master
tags: true
after_success:
- if [[ $TRAVIS_OS_NAME == "linux" ]]; then pip install codecov; codecov; fi