-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
64 lines (54 loc) · 1.52 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
os:
- linux
dist: bionic
sudo: required
language: python
cache: pip
python:
- "3.6"
- "3.7"
services:
- docker
env:
- DATABASE_URI=localhost
before_install:
- sudo apt-get update
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda config --get channels
- conda config --add channels conda-forge
- conda config --add channels bioconda
- conda config --add channels https://conda.anaconda.org/thoba
- conda info -a
- python setup.py install
before_script:
- conda install pip conda-build anaconda-client
- pip install -r requirements.txt
- pip install -e .
- git clone https://github.com/COMBAT-TB/combat-tb-neodb.git && cd combat-tb-neodb/
- docker-compose up --build -d db && cd ..
- docker ps
- sleep 30
script:
- travis_wait 30 pytest -v test/
after_success:
- test $TRAVIS_BRANCH = "master" && bash conda/conda_upload.sh
deploy:
provider: pypi
user: __token__
password: $PYPI_UPLOAD_TOKEN
server: https://test.pypi.org/legacy/
# distributions: "sdist bdist_wheel"
distributions: "sdist release"
skip_existing: true
on:
branch: master
condition: $TRAVIS_PYTHON_VERSION = "3.7"