-
-
Notifications
You must be signed in to change notification settings - Fork 116
/
.travis.yml
22 lines (22 loc) · 906 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
sudo: required
addons:
ssh_known_hosts: qgis-dev.boundlessgeo.com
hosts:
- boundless-test
services:
- docker
env:
global:
- PLUGIN_NAME=ee_plugin
matrix:
- QGIS_VERSION_TAG=master PYTHON_EXECUTABLE=python3 PIP_EXECUTABLE=pip3
before_install:
- docker pull elpaso/qgis-testing-environment:${QGIS_VERSION_TAG}
- docker tag elpaso/qgis-testing-environment:${QGIS_VERSION_TAG} qgis-testing-environment
install:
- docker run -d --name qgis-testing-environment -v ${TRAVIS_BUILD_DIR}:/tests_directory -e DISPLAY=:99 qgis-testing-environment
- sleep 10
- docker exec -it qgis-testing-environment sh -c "qgis_setup.sh ${PLUGIN_NAME}"
- docker exec -it qgis-testing-environment sh -c "$PIP_EXECUTABLE install paver"
script:
- docker exec -it qgis-testing-environment sh -c "cd /tests_directory && paver setup && paver package --tests && qgis_testrunner.sh ${PLUGIN_NAME}.tests.testerplugin.run_tests"