mirror of
https://gitlab.gnome.org/GNOME/libxml2
synced 2025-03-28 21:33:13 +00:00
gitlab-ci: Add "dist" job to build distribution tarball
Prepare for GNOME Release Service.
This commit is contained in:
parent
225e0229dc
commit
5ca4ce6fc0
@ -1,3 +1,7 @@
|
||||
include:
|
||||
- project: 'Infrastructure/gnome-release-service-ci-templates'
|
||||
file: 'release-module.yml'
|
||||
|
||||
.test:
|
||||
image: registry.gitlab.gnome.org/gnome/libxml2
|
||||
variables:
|
||||
@ -286,6 +290,24 @@ cmake:linux:gcc:shared:
|
||||
CC: gcc
|
||||
SUFFIX: linux-gcc-shared
|
||||
|
||||
dist:
|
||||
image: registry.gitlab.gnome.org/gnome/libxml2
|
||||
script:
|
||||
- sh .gitlab-ci/dist.sh
|
||||
artifacts:
|
||||
paths:
|
||||
- libxml2-dist/*.tar.xz
|
||||
|
||||
# TODO: Strip "v" from $CI_COMMIT_TAG
|
||||
|
||||
#release:
|
||||
# stage: release
|
||||
# variables:
|
||||
# TARBALL_ARTIFACT_PATH: libxml2-dist/$CI_PROJECT_NAME-$CI_COMMIT_TAG.tar.xz
|
||||
# extends: .release-module
|
||||
# rules:
|
||||
# - if: $CI_COMMIT_TAG
|
||||
|
||||
pages:
|
||||
script:
|
||||
- mkdir -p public
|
||||
|
11
.gitlab-ci/dist.sh
Normal file
11
.gitlab-ci/dist.sh
Normal file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
mkdir -p libxml2-dist
|
||||
cd libxml2-dist
|
||||
sh ../autogen.sh
|
||||
make distcheck V=1 DISTCHECK_CONFIGURE_FLAGS='--with-legacy'
|
||||
if [ -z "$CI_COMMIT_TAG" ]; then
|
||||
mv libxml2-*.tar.xz libxml2-git-$CI_COMMIT_SHORT_SHA.tar.xz
|
||||
fi
|
Loading…
x
Reference in New Issue
Block a user