forked from opencobra/cobrapy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
101 lines (93 loc) · 2.56 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
language: python
python: 3.5
sudo: false
cache:
directories:
- $HOME/.cache/pip
git:
depth: 2
branches:
only:
- master
- devel
- /^[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="
- GITHUB_REPO=opencobra/cobrapy
matrix:
fast_finish: true
exclude:
- python: 3.5
include:
- os: linux
python: 3.5
env:
- TOXENV=pep8
- os: linux
python: 2.7
env: TOXENV=py27
- os: linux
python: 3.5
env: TOXENV=py35
- os: linux
python: 3.6
env: TOXENV=py36
- os: linux
python: 3.5
env: TOXENV=sbml
- os: linux
python: 3.5
env: TOXENV=array
# - os: osx
# language: generic
# before_install:
# - brew update
# - brew install --without-readline --without-xz --without-gdbm --without-sqlite python3
# - virtualenv env -p python3
# - source env/bin/activate
# - os: osx
# language: generic
# before_install:
# - brew update
# - brew install --without-readline --without-xz --without-gdbm --without-sqlite python2
# - virtualenv env -p python2
# - source env/bin/activate
before_install:
- travis_retry pip install -U pip setuptools wheel tox
before_cache:
- set +e
script:
- travis_wait tox
# N.B.: Currently, Travis mangles (escapes) the release tag body badly.
#before_deploy:
# - source scripts/prepare_notes.sh
deploy:
- provider: pypi
skip_cleanup: true
distributions: sdist bdist_wheel
on:
tags: true
repo: $GITHUB_REPO
python: '3.6'
condition: $TRAVIS_OS_NAME == "linux"
user: $PYPI_USERNAME
password: $PYPI_PASSWORD
- provider: script
skip_cleanup: true
script: scripts/deploy_website.sh
on:
tags: true
repo: $GITHUB_REPO
python: '3.6'
condition: $TRAVIS_OS_NAME == "linux"
- provider: releases
skip_cleanup: true
api_key: $GITHUB_TOKEN
body: "Please see https://github.com/opencobra/cobrapy/tree/${TRAVIS_TAG}/release-notes/${TRAVIS_TAG}.md for the full release notes."
on:
tags: true
repo: $GITHUB_REPO
python: '3.6'
condition: $TRAVIS_OS_NAME == "linux"