-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.travis.yml
40 lines (34 loc) · 884 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
37
38
39
40
language: generic
sudo: false
notifications:
email: false
branches: # blacklist
except:
- docs
matrix:
fast_finish: true
include:
- python: 3.6
env: TEST_ENV=defaults
- python: 3.6
env: TEST_ENV=flake8
before_install:
- 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
- pip install pyyaml
install:
- conda env create --file ci/requirements-$TEST_ENV.yml --quiet
- source activate test_env
- pip install -e .
script:
- if [[ "$TEST_ENV" == "flake8" ]]; then
flake8 -j auto rgitools;
else
pytest rgitools --verbose --cov=rgitools --cov-report term-missing;
fi
after_success:
- coveralls