[Git][debian-gis-team/gdal-grass][master] 2 commits: Add autopkgtest to catch GDAL/GRASS version errors.
Bas Couwenberg (@sebastic)
gitlab at salsa.debian.org
Wed Nov 2 07:00:10 GMT 2022
Bas Couwenberg pushed to branch master at Debian GIS Project / gdal-grass
Commits:
65fecaed by Bas Couwenberg at 2022-11-02T07:59:19+01:00
Add autopkgtest to catch GDAL/GRASS version errors.
- - - - -
9aab90ca by Bas Couwenberg at 2022-11-02T07:59:53+01:00
Enable Salsa CI.
- - - - -
4 changed files:
- + debian/.gitlab-ci.yml
- debian/changelog
- + debian/tests/control
- + debian/tests/ogrinfo
Changes:
=====================================
debian/.gitlab-ci.yml
=====================================
@@ -0,0 +1,3 @@
+include:
+ - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/salsa-ci.yml
+ - https://salsa.debian.org/salsa-ci-team/pipeline/raw/master/pipeline-jobs.yml
=====================================
debian/changelog
=====================================
@@ -1,6 +1,8 @@
libgdal-grass (1:1.0.1-2) UNRELEASED; urgency=medium
* Bump Standards-Version to 4.6.1, no changes.
+ * Add autopkgtest to catch GDAL/GRASS version errors.
+ * Enable Salsa CI.
-- Bas Couwenberg <sebastic at debian.org> Tue, 21 Jun 2022 07:07:28 +0200
=====================================
debian/tests/control
=====================================
@@ -0,0 +1,6 @@
+Tests: ogrinfo
+Depends: ca-certificates,
+ gdal-bin,
+ libgdal-grass,
+ wget
+Restrictions: needs-internet
=====================================
debian/tests/ogrinfo
=====================================
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+DATASET_URL="https://grass.osgeo.org/sampledata/spearfish_grass70data-0.3.tar.gz"
+DATASET_FILE="spearfish.tar.gz"
+
+TEMPDIR="$(mktemp -d)"
+
+cd "${TEMPDIR}" || exit 1
+
+wget -q "${DATASET_URL}" -O "${DATASET_FILE}"
+tar xaf "${DATASET_FILE}"
+
+GISBASE="$(LC_ALL=C.UTF-8 grass --config path 2> /dev/null)" \
+PROJ_NETWORK=ON \
+ogrinfo -so -al ./spearfish*/PERMANENT/vector/roads/head
+RC=$?
+
+cd "${OLDPWD}" || exit 1
+rm -rf "${TEMPDIR}"
+
+exit "${RC}"
View it on GitLab: https://salsa.debian.org/debian-gis-team/gdal-grass/-/compare/11e94f1b23b17bab5d09140fb9e63ffc4d6bb54a...9aab90cab0852278bff8799f4bbd0b12e8ca0af9
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/gdal-grass/-/compare/11e94f1b23b17bab5d09140fb9e63ffc4d6bb54a...9aab90cab0852278bff8799f4bbd0b12e8ca0af9
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20221102/d76507d5/attachment-0001.htm>
More information about the Pkg-grass-devel
mailing list