-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
36 lines (34 loc) · 945 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
36
language: python
sudo: required
dist: xenial
cache: false
python:
- "3.6" # current default Python on Travis CI
- "3.7"
- "3.8"
-
# command to install dependencies
install:
- sudo apt-get update
- 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 conda -c conda-forge
- conda env create -n imageprep -f environment.yml
- conda list -n imageprep
- source activate imageprep
- python --version
- pip install -U pip
- pip install -U pytest
- pip install codecov
- pip install pytest-cov
- pip install --user -r requirements.txt -vv
- pip install .
# command to run tests
script:
- python -m pytest --cov-report term-missing --cov=./
- rm *.txt
after_success:
- codecov # submit coverage