forked from planetfederal/qgis-geogig-plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
42 lines (36 loc) · 1.82 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
sudo: required
addons:
hosts:
- boundless-test
services:
- docker
env:
global:
- PLUGIN_NAME=geogig
matrix:
- QGIS_VERSION_TAG=master
- QGIS_VERSION_TAG=release
before_install:
- docker pull boundlessgeo/qgis-testing-environment:${QGIS_VERSION_TAG}
- docker tag boundlessgeo/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
# Setup QGIS to avoid modals and install test auth db
- docker exec -it qgis-testing-environment sh -c "qgis_setup.sh ${PLUGIN_NAME}"
### Start custom mods to install requests==2.6.0
# Extra step required
- docker exec -it qgis-testing-environment sh -c "apt-get remove -y python-pip && easy_install pip"
- docker exec -it qgis-testing-environment sh -c "/usr/local/bin/pip install requests==2.6.0"
- docker exec -it qgis-testing-environment sh -c "/usr/local/bin/pip install paver"
- docker exec -it qgis-testing-environment sh -c "apt-get remove -y python-pip && easy_install pip"
- docker exec -it qgis-testing-environment sh -c "/usr/local/bin/pip install requests==2.6.0"
- docker exec -it qgis-testing-environment sh -c "/usr/local/bin/pip install paver"
# Build the plugin
# Installed in the custom extra step above - docker exec -it qgis-testing-environment sh -c "pip install paver"
### End custom mods to install requests==2.6.0
- docker exec -it qgis-testing-environment sh -c "cd /tests_directory && paver setup && paver package --tests"
script:
# Run the unit tests
# This plugin has not yet any unit tests
- docker exec -it qgis-testing-environment sh -c "echo '${PLUGIN_NAME} has no unit tests yet, please create them and add here'"