From c1ae5314a09c3f9aeeb7c2f8d3ac71a138a4548c Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Sun, 22 Jan 2023 17:07:17 +0100 Subject: [PATCH] CI: Test external-sop against sqop --- .reuse/dep5 | 4 ++++ .woodpecker/.build.yml | 7 ++++++- .../src/main/resources/sop/external/config.json.ci | 8 ++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 external-sop/src/main/resources/sop/external/config.json.ci diff --git a/.reuse/dep5 b/.reuse/dep5 index 9dee06a..f5be92f 100644 --- a/.reuse/dep5 +++ b/.reuse/dep5 @@ -17,4 +17,8 @@ License: Apache-2.0 # Woodpecker build files Files: .woodpecker/* Copyright: 2022 the original author or authors. +License: Apache-2.0 + +Files: external-sop/src/main/resources/sop/external/* +Copyright: 2023 the original author or authors License: Apache-2.0 \ No newline at end of file diff --git a/.woodpecker/.build.yml b/.woodpecker/.build.yml index f504b44..e235f7f 100644 --- a/.woodpecker/.build.yml +++ b/.woodpecker/.build.yml @@ -1,8 +1,13 @@ pipeline: run: - image: gradle:7.5-jdk8 + image: gradle:7.5-jdk8-jammy commands: + # Install Sequoia-SOP + - apt update && apt install --yes sqop + # Checkout code - git checkout $CI_COMMIT_BRANCH + # Prepare CI + - cp external-sop/src/main/resources/sop/external/config.json.ci external-sop/src/main/resources/sop/external/config.json # Code works - gradle test # Code is clean diff --git a/external-sop/src/main/resources/sop/external/config.json.ci b/external-sop/src/main/resources/sop/external/config.json.ci new file mode 100644 index 0000000..c7fd159 --- /dev/null +++ b/external-sop/src/main/resources/sop/external/config.json.ci @@ -0,0 +1,8 @@ +{ + "backends": [ + { + "name": "Sequoia-SOP", + "sop": "/usr/bin/sqop" + } + ] +} \ No newline at end of file