Skip to content

Commit 2cf6d4b

Browse files
committed
gitlab-ci: Add "dist" job to build distribution tarball
Prepare for GNOME Release Service.
1 parent 3910e63 commit 2cf6d4b

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.gitlab-ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,14 @@ cmake:linux:gcc:shared:
286286
CC: gcc
287287
SUFFIX: linux-gcc-shared
288288

289+
dist:
290+
image: registry.gitlab.gnome.org/gnome/libxml2
291+
script:
292+
- sh .gitlab-ci/dist.sh
293+
artifacts:
294+
paths:
295+
- libxml2-dist/*.tar.xz
296+
289297
pages:
290298
script:
291299
- mkdir -p public

.gitlab-ci/dist.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/sh
2+
3+
set -e
4+
5+
mkdir -p libxml2-dist
6+
cd libxml2-dist
7+
sh ../autogen.sh
8+
make distcheck V=1 DISTCHECK_CONFIGURE_FLAGS='--with-legacy'
9+
if [ -z "$CI_COMMIT_TAG" ]; then
10+
mv libxml2-*.tar.xz libxml2-git-$CI_COMMIT_SHORT_SHA.tar.xz
11+
fi

0 commit comments

Comments
 (0)