Select Git revision
.gitlab-ci.yml
.gitlab-ci.yml 1.19 KiB
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 help2man man gzip make dpkg p7zip tar dh_make
cache:
paths:
- "$EXTDPKG"
stages: # List of stages for jobs, and their order of execution
- build
- test
- packaging
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
debianize-job:
stage: packaging
timeout: 30min
tags:
- "docker"
script:
- ./debianize.sh
artifacts:
paths:
- artifacts/*.{deb,rpm,sh,tar.gz}
- ./*.{deb,rpm,sh,tar.gz}