-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.travis.yml
57 lines (57 loc) · 1.59 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
dist: trusty
sudo: required
language: python
python:
# Temporarily disabled because of https://github.com/pypa/pip/issues/5230
# - "3.4"
- "3.6"
env:
# Has to be set so that the TLS coordinator script works
- SUMO_HOME=$TRAVIS_BUILD_DIR/sumo/sumo
# SUMO ppa can not be added with the apt addon because it is not whitelisted
before_install:
- sudo add-apt-repository ppa:sumo/stable -y
- sudo add-apt-repository ppa:jonathonf/ffmpeg-3 -y
- sudo apt-get update -q
- sudo apt-get install sumo ffmpeg
install:
- pip install --upgrade pip
- pip install -r requirements-test.txt
# Clone SUMO to get newer tools than in the repository
- git clone --depth 10 https://github.com/planetsumo/sumo.git $TRAVIS_BUILD_DIR/sumo
- cd $TRAVIS_BUILD_DIR/sumo
- git checkout eefb468d8a3d255643dd7c2adb65a2d95902af20
- cd $TRAVIS_BUILD_DIR
- pip install .
addons:
apt:
packages:
- libgdal1h
- gdal-bin
- libgdal-dev
- libspatialindex-dev
- libgeos-dev
- libopenblas-dev
- liblapack-dev
- gfortran
- sumo
- texlive-latex-recommended
- texlive-latex-extra
- texlive-fonts-recommended
- texlive-fonts-extra
- dvipng
cache: pip
branches:
only:
- master
# Configure a headless display to test plot generation
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
# Give xvfb some time to start
- sleep 3
script:
- nosetests --with-coverage --cover-html --cover-tests --cover-package=vtovosm --verbose
after_success:
- coverage-badge -f -o .travis/coverage.svg
- if [[ $TRAVIS_PYTHON_VERSION == 3.4 ]]; then .travis/push.sh; fi