From 84607683814ba343d19d7e5eccd961e264a2b613 Mon Sep 17 00:00:00 2001 From: Andreas Romeyke <art1@andreas-romeyke.de> Date: Fri, 29 Apr 2022 09:32:11 +0200 Subject: [PATCH] - add basic checks --- .gitlab-ci.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..cdb617d --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,37 @@ +image: debian:stable-slim + +variables: + EXTDPKG: extdpkg + +before_script: + - if [[ -d $EXTDPKG ]]; then cp -r $EXTDPKG/* /var/cache/apt/; fi + - apt update + - apt install -y libxml2-utils + +cache: + paths: + - "$EXTDPKG" + +stages: # List of stages for jobs, and their order of execution + - build + - test + +build-env-job: # This job runs in the build stage, which runs first. + stage: build + timeout: 30m + tags: + - "docker" + # variables: + # CI_DEBUG_TRACE: "true" + script: + - if [[ ! -d $EXTDPKG ]]; then mkdir -p "$EXTDPKG"; cp -r /var/cache/apt/* "$EXTDPKG"/; fi + - echo "copied to cache" + +validate-job: # This job runs in the test stage. + stage: test # It only starts when the job in the build stage completes successfully. + timeout: 30m + tags: + - "docker" + script: + - for file in *.xml; do xmllint --noout --schema sigprops.xsd $file; done + -- GitLab