forked from planetfederal/qgis-tester-plugin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
36 lines (28 loc) · 1.43 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
dist: bionic
services:
- docker
env:
global:
- PLUGIN_NAME=qgistester
- IMAGE=qgis/qgis
matrix:
- QGIS_VERSION_TAG=latest PYTHON_EXECUTABLE=python3 PIP_EXECUTABLE=pip3
- QGIS_VERSION_TAG=release-3_10 PYTHON_EXECUTABLE=python3 PIP_EXECUTABLE=pip3
language: python
python:
- 3.6
before_install:
- docker pull ${IMAGE}:${QGIS_VERSION_TAG}
install:
- docker run -d --name qgis-testing-environment -v ${TRAVIS_BUILD_DIR}:/tests_directory -e DISPLAY=:99 ${IMAGE}:${QGIS_VERSION_TAG}
- 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"
- docker exec -it qgis-testing-environment sh -c "$PYTHON_EXECUTABLE /tests_directory/qgistester/unittests/test_plugin.py"
- docker exec -it qgis-testing-environment sh -c "$PYTHON_EXECUTABLE /tests_directory/qgistester/unittests/test_ReportDialog.py"
- docker exec -it qgis-testing-environment sh -c "$PYTHON_EXECUTABLE /tests_directory/qgistester/unittests/test_TesterWidget.py"
- docker exec -it qgis-testing-environment sh -c "$PYTHON_EXECUTABLE /tests_directory/qgistester/unittests/test_Test.py"
- docker exec -it qgis-testing-environment sh -c "$PYTHON_EXECUTABLE /tests_directory/qgistester/unittests/test_TestsModule.py"
sudo: false