-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy path.travis.yml
More file actions
42 lines (35 loc) · 1.33 KB
/
.travis.yml
File metadata and controls
42 lines (35 loc) · 1.33 KB
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
## 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 miniforge
- wget -O Miniforge3.sh "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"
- bash Miniforge3.sh -b -p "${HOME}/conda" > /dev/null
- source "${HOME}/conda/etc/profile.d/conda.sh"
- source "${HOME}/conda/etc/profile.d/mamba.sh"
- mamba activate
install:
- mamba env create -n gimme -f requirements.yaml
- mamba activate gimme
- pip install --no-deps --no-cache-dir --use-pep517 -v -e .
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