-
Notifications
You must be signed in to change notification settings - Fork 46
91 lines (78 loc) · 2.63 KB
/
rebuild-qgis-2.8.yaml
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
name: QGIS rebuild 2.8
on:
schedule:
- cron: '30 3 * * *'
env:
DOCKER_BUILDKIT: 1
jobs:
main:
runs-on: ubuntu-22.04
name: QGIS rebuild 2.8
timeout-minutes: 50
strategy:
fail-fast: false
matrix:
version:
- '3.28'
- 3.28-gdal3.6
- 3.28-gdal3.7
- '3.34'
- 3.34-gdal3.7
- 3.34-gdal3.8
- ltr
- lr
- lr-debug
- latest
branch:
- '2.8'
env:
MAIN_BRANCH: ${{ matrix.branch }}
MAJOR_VERSION: ${{ matrix.branch }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ env.MAIN_BRANCH }}
- uses: camptocamp/initialise-gopass-summon-action@v2
with:
ci-gpg-private-key: ${{secrets.CI_GPG_PRIVATE_KEY}}
github-gopass-ci-token: ${{secrets.GOPASS_CI_GITHUB_TOKEN}}
patterns: docker
- run: echo "${HOME}/.local/bin" >> ${GITHUB_PATH}
- run: python3 -m pip install --user --requirement=ci/requirements.txt
- run: scripts/get-version --github
id: version
- run: make build-runner
- run: make build-test-db
- name: Build QGIS server
run: |
docker build --target=runner --build-arg=VERSION=${{ matrix.version }} \
--build-arg=GEOMAPFISH_VERSION=$(scripts/get-version --major) \
--tag=camptocamp/geomapfish-qgisserver \
docker/qgisserver;
docker tag camptocamp/geomapfish-qgisserver \
camptocamp/geomapfish-qgisserver:gmflatest-qgis${{ matrix.version }}
- name: Test library availability
run:
"! ( docker run --rm camptocamp/geomapfish-qgisserver ldd /usr/local/bin/qgis_mapserv.fcgi | grep 'not\
\ found' )"
- name: Acceptance tests
run: |
cd docker/qgisserver
docker-compose up -d
docker-compose exec -T tests /tests/wait-db
docker-compose exec -T tests alembic --config=/tests/alembic.ini --name=main upgrade head
docker-compose exec -T tests alembic --config=/tests/alembic.ini --name=static upgrade head
docker-compose exec -T tests /tests/fill-db
c2cciutils-docker-logs
docker-compose exec -T tests /tests/acceptance-tests
- run: c2cciutils-docker-logs
if: failure()
- run: docker-compose down
- name: Publish
run: >
c2cciutils-publish
--group=qgis-${{ matrix.version }}
--docker-versions=${{ steps.version.outputs.versions }}
--snyk-version=${{ steps.version.outputs.snyk_version }}
--type=rebuild