-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
66 lines (58 loc) · 2.91 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
language: generic
os:
- linux
- osx
dist: trusty
sudo: false
cache:
directories:
- $HOME/.cache/pip
- $HOME/download # Sufficient to add miniconda.sh to TRAVIS cache.
- $HOME/miniconda # Add the installation to TRAVIS cache.
before_cache:
- rm -rf $HOME/miniconda/conda-bld $HOME/miniconda/locks $HOME/miniconda/pkgs $HOME/miniconda/var
before_install:
- chmod +x ./bin/install_conda.sh
- chmod +x ./bin/update_bioconda.sh
- ./bin/install_conda.sh
- rm -rf ./cache/ || true
- mkdir ./cache/
- rm -rf ./write/ || true
- mkdir ./write/
- rm -rf ./figures/ || true
- mkdir ./figures/
install:
- source $HOME/miniconda/bin/activate
- conda install python=3.6 numpy numba pandas scikit-learn colorama Sphinx pytest pytest-cov docutils pytables -y
- pip install sphinx-autodoc-typehints sphinx-rtd-theme codecov
- pip install -e .[plotting]
script:
- pytest -s --cov=./
- rst2html.py --halt=2 README.rst >/dev/null
- export PRERELEASE=`echo $TRAVIS_TAG | grep -c "b"`
after_success:
- codecov
deploy:
# test pypi
- provider: pypi
twine_version: 1.12.1
server: https://test.pypi.org/legacy/
user: rfechtner
password:
secure: f7KmjmeMlTB904EE4sd9m96KCzCUfpEmGWl8n/53of29TUrXpv92T77X1vWfzFcdAadn/FPMrQsUzqXURgTgdpsT2Zk7DFScSDewdJ0JqQwOW73ucTwFtShzsX0GFcWT4xnR6Nvz5VM1A527//mLDR/CnyCwdDRT2bLidduUZOVtytwmSst/08tH1dK/iwqB74Ks2YIPGoi0/D3JzCKKkPGQnqnr+V4Q36hBHXUIUivEMQnvCBqS63+fdfMFOlwgMUWQrxIy/BFboWmlPqgymx4j2N3C8MLjt7cEBBt5rTZXnENstjWO1CZSVvlkpv57CUuxl4AuC2Es/wtat+qkFSZOnNDU+8UNWBWrJoFtJWZWUx+Rs0S4I+e8KjDJSWwy4cqZV9tEPJdXxW5SXOzzLLbveDqJxtVEk8vqRj3CiaTic3VCjxid2sDUPIJkdNDDu1Jm1C1/wn2vOtJMze5xyuwXIzL6ySNVwdne1rTSCy/OXxH5YPoZhDmFfs2iwGq+x+txJkQMvQfvCj8K7Yrg3+ipDTRlHJUHnfrpktTUNfyry46ajDxsBa3Jl+nyuYsczFIDEC/r9boP5F893kbDMwsTHzbugn60b/2vbdC7a6RleZyqySZ8vr+ly12nP5uzqRGmK2v9qi++PIzKEVwS+aYYwnkHJqIMVh8VMCQCp3M=
on:
branch: master
tags: true
condition: $TRAVIS_OS_NAME = "linux" && $PRERELEASE = "1"
# production pypi
- provider: pypi
twine_version: 1.12.1
user: rfechtner
password:
secure: f7KmjmeMlTB904EE4sd9m96KCzCUfpEmGWl8n/53of29TUrXpv92T77X1vWfzFcdAadn/FPMrQsUzqXURgTgdpsT2Zk7DFScSDewdJ0JqQwOW73ucTwFtShzsX0GFcWT4xnR6Nvz5VM1A527//mLDR/CnyCwdDRT2bLidduUZOVtytwmSst/08tH1dK/iwqB74Ks2YIPGoi0/D3JzCKKkPGQnqnr+V4Q36hBHXUIUivEMQnvCBqS63+fdfMFOlwgMUWQrxIy/BFboWmlPqgymx4j2N3C8MLjt7cEBBt5rTZXnENstjWO1CZSVvlkpv57CUuxl4AuC2Es/wtat+qkFSZOnNDU+8UNWBWrJoFtJWZWUx+Rs0S4I+e8KjDJSWwy4cqZV9tEPJdXxW5SXOzzLLbveDqJxtVEk8vqRj3CiaTic3VCjxid2sDUPIJkdNDDu1Jm1C1/wn2vOtJMze5xyuwXIzL6ySNVwdne1rTSCy/OXxH5YPoZhDmFfs2iwGq+x+txJkQMvQfvCj8K7Yrg3+ipDTRlHJUHnfrpktTUNfyry46ajDxsBa3Jl+nyuYsczFIDEC/r9boP5F893kbDMwsTHzbugn60b/2vbdC7a6RleZyqySZ8vr+ly12nP5uzqRGmK2v9qi++PIzKEVwS+aYYwnkHJqIMVh8VMCQCp3M=
on:
branch: master
tags: true
condition: $TRAVIS_OS_NAME = "linux" && $PRERELEASE = "0"
after_deploy:
- test $TRAVIS_OS_NAME = "linux" && test $PRERELEASE = "0" && ./bin/update_bioconda.sh