forked from goodarzilab/pyteiser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (27 loc) · 821 Bytes
/
.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
language: python
sudo: false
notifications:
email: false
python:
- "3.7"
# only run travis on the master branch
branches:
only:
- master
# install dependencies listed in requirements
install:
- pip install -r requirements.txt
- pip install pytest-cov
- pip install .
env:
- CODECOV_TOKEN=e056388e-0c57-4af2-9366-d1b94bfd16a6
# fix of Travis deprecation warning
# from here: https://stackoverflow.com/questions/55486248/deprecationwarning-in-python-3-6-and-3-7-with-pillow-distutils-imp
before_script:
- python -c 'import os, virtualenv; virtualenv.install_distutils(os.environ["VIRTUAL_ENV"])'
# run tests
script:
- pytest -v --cov-report=xml --cov=pyteiser tests/*
after_success:
- codecov
- bash <(curl -Ls https://coverage.codacy.com/get.sh) report -l Python -r coverage.xml