-
Notifications
You must be signed in to change notification settings - Fork 52
/
.travis.yml
33 lines (32 loc) · 942 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
dist: xenial
sudo: required
language: python
python:
- 2.7
- 3.5
before_install:
- deactivate
- sudo apt-get install -y python-software-properties
- if [[ $TRAVIS_PYTHON_VERSION == 3.5 ]]; then virtualenv --system-site-packages venv -p python3; fi
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then virtualenv --system-site-packages venv; fi
- source venv/bin/activate
- pip install -r requirements.txt
- if [[ $TRAVIS_PYTHON_VERSION == 3.5 ]]; then
sudo apt-get install python3-mapnik;
fi
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then
sudo apt-add-repository --yes ppa:mapnik/v2.2.0;
sudo apt-get update -qq;
sudo apt-get install -y mapnik-utils python-mapnik;
fi
- python --version
install:
- python setup.py develop
before_script:
- pip install nose
- pip install coverage
script:
- nosetests --with-coverage --cover-package=landez
after_success:
- pip install coveralls
- coveralls