-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy path.travis.yml
44 lines (37 loc) · 1.39 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
## run travis on these branches (and all PRs)
branches:
only:
- master
- develop
os: linux
dist: focal
language: minimal
env:
global:
- CC_TEST_REPORTER_ID=3865090108d29191b1d34760d2ed5825d67b7566f0f87090e688b7513fdef063
before_install:
# setup miniconda
- wget https://repo.anaconda.com/miniconda/Miniconda3-py37_4.12.0-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b -p $HOME/miniconda -f
- export PATH=$HOME/miniconda/bin:$PATH;
- conda config --set always_yes True
install:
- conda install -c conda-forge "conda>=4.12.0" "mamba>=0.27"
- mamba env create -f requirements.yaml
- source activate gimme
- python setup.py build # installs the motif discovery tools
- pip install -e . # installs gimme (in editable mode)
before_script:
# install Code Climate test coverage reporter
- wget -O cc-test-reporter https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
# generate the config and print the cache location
- python -c 'from gimmemotifs.config import CACHE_DIR;print(CACHE_DIR)'
# run the tests
- pytest -vvv --disable-pytest-warnings --cov=scripts --cov=gimmemotifs --cov-report=xml test/
after_script:
# upload test coverage data to Code Climate
- ./cc-test-reporter after-build -t coverage.py --exit-code $TRAVIS_TEST_RESULT