ci: load Saxon license from CI file var; ignore local license
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e911400..1c238b9 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -10,6 +10,7 @@
APT_CACHE_DIR: apt-cache
SRC_DIR: test/resources/DNB
YEARS: "13 18"
+ SAXON_HOME: "$CI_PROJECT_DIR/lib"
build-and-test-i5:
stage: test
@@ -25,6 +26,11 @@
before_script:
- source `find .. -name section_helper.sh`
+ - mkdir -p "$SAXON_HOME"
+ - |
+ if [ -n "$SAXON_LICENSE" ] && [ -f "$SAXON_LICENSE" ]; then
+ cp "$SAXON_LICENSE" "$SAXON_HOME/saxon-license.lic"
+ fi
- start_section install_linux_packages "Installing missing Linux packages"
- apt-get -o dir::cache::archives="$APT_CACHE_DIR" update
- apt-get -o dir::cache::archives="$APT_CACHE_DIR" install -y libxml2-utils curl openjdk-17-jre-headless xmlstarlet
@@ -68,6 +74,11 @@
before_script:
- source `find .. -name section_helper.sh`
+ - mkdir -p "$SAXON_HOME"
+ - |
+ if [ -n "$SAXON_LICENSE" ] && [ -f "$SAXON_LICENSE" ]; then
+ cp "$SAXON_LICENSE" "$SAXON_HOME/saxon-license.lic"
+ fi
- start_section install_linux_packages "Installing missing Linux packages"
- mkdir -pv $APT_CACHE_DIR
- apt-get -o dir::cache::archives="$APT_CACHE_DIR" update
@@ -111,6 +122,11 @@
image: rocker/verse
before_script:
- source `find .. -name section_helper.sh`
+ - mkdir -p "$SAXON_HOME"
+ - |
+ if [ -n "$SAXON_LICENSE" ] && [ -f "$SAXON_LICENSE" ]; then
+ cp "$SAXON_LICENSE" "$SAXON_HOME/saxon-license.lic"
+ fi
- start_section setup_ssh "Setting up SSH"
- apt-get update
- apt-get install -y rsync openssh-client