2020-09-08 15:41:18 +02:00
|
|
|
name: OGC tests for QGIS Server
|
2020-09-08 12:47:05 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- release-**
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- release-**
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@master
|
|
|
|
|
|
|
|
- name: Setup build dependencies
|
|
|
|
run: |
|
|
|
|
docker build -t qgis_server_deps -f .ci/ogc/Dockerfile .ci/ogc/
|
|
|
|
|
|
|
|
- name: Run build
|
|
|
|
run: |
|
2020-09-12 10:02:06 +02:00
|
|
|
docker run -v $(pwd):/usr/src/qgis qgis_server_deps /usr/src/qgis/.ci/ogc/build.sh
|
2020-09-08 12:47:05 +02:00
|
|
|
|
|
|
|
- name: Install pyogctest
|
|
|
|
run: |
|
|
|
|
sudo apt-get install python3-virtualenv virtualenv git
|
|
|
|
git clone https://github.com/pblottiere/pyogctest
|
2020-12-01 14:57:22 +01:00
|
|
|
cd pyogctest && git checkout 1.0.2 && cd -
|
2020-09-08 12:47:05 +02:00
|
|
|
virtualenv -p /usr/bin/python3 venv && source venv/bin/activate && pip install -e pyogctest/
|
2020-09-08 15:41:18 +02:00
|
|
|
|
2020-09-09 11:54:08 +02:00
|
|
|
- name: Download WMS 1.3.0 dataset
|
|
|
|
run: |
|
|
|
|
source venv/bin/activate && ./pyogctest/pyogctest.py -s wms130 -w
|
|
|
|
|
2020-09-08 15:41:18 +02:00
|
|
|
- name: Run WMS 1.3.0 OGC tests
|
|
|
|
run: |
|
|
|
|
docker-compose -f .ci/ogc/docker-compose.yml up -d
|
2020-09-09 11:54:08 +02:00
|
|
|
source venv/bin/activate && ./pyogctest/pyogctest.py -n ogc_qgis -s wms130 -v -u http://$(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' qgis_server_nginx)/qgisserver
|