-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
50 lines (39 loc) · 1.36 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
language: python
python:
- 3.7
# set env variables
env:
global:
- CC_TEST_REPORTER_ID=6bb98669df7b436872c1aae8ed6868c10bdcdaf7f9d7e4906078fb446b24cb1a
install:
# sudo apt-get update (enable once apt-get is used)
# install (mini)conda
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- 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
# Useful for debugging any issues with conda
- conda info -a
- conda config --add channels defaults
- conda config --add channels conda-forge
- conda config --add channels bioconda
# create env
- conda env create -f environment.yml;
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- source activate TBK
- coverage run tests/beta_poisson.py
- coverage run -a tests/markovian_model.py
- coverage run -a tests/inference.py
- coverage xml
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT --coverage-input-type coverage.py
## speedup the slow build of our environment by caching (mini)conda
#cache:
# directories:
# - ${HOME}/miniconda