-
Notifications
You must be signed in to change notification settings - Fork 25
/
.travis.yml
36 lines (29 loc) · 981 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
addons:
apt:
packages:
- libgdal1i
- gdal-bin
- libgdal-dev
- libspatialindex-dev
language: python
python:
- 3.6
services:
- docker
before_install:
- touch .env
- docker build -t ci/build .
- sudo apt-get -y update
- pip install --upgrade pip
- pip install --upgrade wheel
install:
- pip install -r requirements.txt
- pip install -r requirements_dev.txt
script:
- PYTHONPATH=. MPLBACKEND="agg" py.test -k 'not graph_tool' --verbose
- find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf
- ci_env=`bash <(curl -s https://codecov.io/env)`
- docker run $ci_env -v $PWD:/code -it ci/build bash -c "GRAPH_TOOL_DIR=/usr/lib/python3/dist-packages/ PYTHONPATH=. MPLBACKEND="agg" coverage run --source peartree -m py.test --verbose"
after_success:
- docker run $ci_env -v $PWD:/code -it ci/build bash -c "coverage report -m"
- docker run $ci_env -v $PWD:/code -it ci/build bash -c "bash <(curl -s https://codecov.io/bash)"