-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.travis.yml
71 lines (56 loc) · 1.8 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
59
60
61
62
63
64
65
66
67
68
69
70
71
services:
- docker
env:
global:
- ON_TRAVIS=true
# - IMAGE=elpaso/qgis-testing-environment
# - IMAGE=boundlessgeo/qgis-testing-environment
- IMAGE=kartoza/qgis-testing
matrix:
# Tags from elpaso
# - QGIS_VERSION_TAG=release-2_8
# - QGIS_VERSION_TAG=release-2_14
# Tags from boundlessgeo
# - QGIS_VERSION_TAG=release # Current 2.14
# - QGIS_VERSION_TAG=master_2 # Current 2.17
# - QGIS_VERSION_TAG=master # Current 3.0
# Tags from kartoza
- QGIS_VERSION_TAG=boundlessgeo-2.14.7
language: python
cache:
directories:
- $HOME/.cache/pip
python:
- "2.7"
virtualenv:
system_site_packages: true
branches:
only:
- master
- develop
- experimental
addons:
apt:
packages:
- git
- python-software-properties
before_install:
- docker pull ${IMAGE}:${QGIS_VERSION_TAG}
install:
- pip install --upgrade pip
- pip install --upgrade pep8
- docker run -d --name qgis-testing-environment -v ${TRAVIS_BUILD_DIR}:/tests_directory -e ON_TRAVIS=${ON_TRAVIS} -e DISPLAY=:99 ${IMAGE}:${QGIS_VERSION_TAG}
- sleep 10
- docker exec -it qgis-testing-environment sh -c "qgis_setup.sh GeoHealth"
- docker exec -it qgis-testing-environment sh -c "rm -rf /root/.qgis2/python/plugins/GeoHealth"
- docker exec -it qgis-testing-environment sh -c "ln -s /tests_directory /root/.qgis2/python/plugins/GeoHealth"
- docker exec -it qgis-testing-environment sh -c "apt-get update"
- docker exec -it qgis-testing-environment sh -c "apt-get build-dep -y python-matplotlib"
- docker exec -it qgis-testing-environment sh -c "pip install matplotlib==1.4.3"
script:
- make pep8
- docker exec -it qgis-testing-environment sh -c "qgis_testrunner.sh test_suite.test_package"
notifications:
email:
sudo: false