forked from xoolive/traffic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
58 lines (48 loc) · 1.13 KB
/
.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
dist: xenial # required for Python >= 3.7
language: python
cache:
pip: true
apt: true
directories:
- $HOME/.cache/traffic/
python:
- 3.6
- 3.7
- 3.8
env:
global:
- TRAFFIC_NOPLUGIN=""
addons:
apt:
packages:
# Shapely
- libgeos-dev
# Cartopy
- libproj-dev
- proj-bin
- proj-data
- libarchive-dev
before_install:
- python -m pip install -U pip
- python -m pip --version
install:
# possible bug with pytest 4.6.0
- python -m pip install --upgrade codecov pytest-cov pytest==4.5
- python -m pip install --upgrade numpy pyproj # dependency for cartopy
- python -m pip install --upgrade libarchive # dependency for so6.7z
- python -m pip install --upgrade sphinx sphinx-rtd-theme
- python -m pip install -e .
script:
- travis_wait 30 python -m pytest --cov --cov-report term-missing
after_success:
- codecov
- cd docs; make html; cd ..
deploy:
provider: pages
skip_cleanup: true
github_token: $GITHUB_TOKEN
repo: traffic-viz/traffic-viz.github.io
target_branch: master
local_dir: docs/_build/html
on:
condition: $TRAVIS_PYTHON_VERSION = 3.7