forked from opencobra/cobrapy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
73 lines (63 loc) · 1.51 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
language: python
sudo: false
python:
- "2.7"
- "3.5"
- "3.6"
- "3.7-dev"
git:
depth: 2
cache:
pip: true
branches:
only:
- master
- devel
- /^[0-9]+\.[0-9]+\.[0-9]+[.0-9ab]*$/
env:
global:
- GITHUB_REPO=opencobra/cobrapy
matrix:
fast_finish: true
install:
- pip install --upgrade pip setuptools wheel tox tox-travis
script:
- travis_wait tox -- --benchmark-skip --cov-report xml --cov-report term
- bash <(curl -s https://codecov.io/bash)
stages:
- test
- name: deploy
if: tag IS present
# N.B.: Currently, Travis mangles (escapes) the release tag body badly.
#before_deploy:
# - source scripts/prepare_notes.sh
jobs:
include:
- stage: deploy
python: "3.6"
install:
- pip install --upgrade pip setuptools wheel
script:
- echo "Deploying..."
deploy:
- provider: pypi
skip_cleanup: true
distributions: sdist bdist_wheel
user: cobrapy
password: $PYPI_PASSWORD
on:
tags: true
repo: $GITHUB_REPO
- provider: script
skip_cleanup: true
script: scripts/deploy_website.sh
on:
tags: true
repo: $GITHUB_REPO
- 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