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
3910e639bc
commit
2cf6d4b78e
@ -286,6 +286,14 @@ 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
|
||||
|
||||
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