-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.gitlab-ci.yml
36 lines (32 loc) · 1.5 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
include:
- component: gitlab.gnome.org/GNOME/citemplates/release-service@release-service-sandbox # <-- instead of @master
# - component: "gitlab.gnome.org/GNOME/citemplates/release-service@master"
inputs:
job-stage: "release"
dist-job-name: "build-release-tarball"
tarball-artifact-path: ${TARBALL_ARTIFACT_PATH}
image: ubuntu
stages:
- "build"
- "release"
variables:
TARBALL_ARTIFACT_PATH: ${CI_PROJECT_NAME}-${CI_COMMIT_TAG_MESSAGE}.tar.xz
build-release-tarball:
stage: "build"
before_script:
- DEBIAN_FRONTEND=noninteractive apt update
- DEBIAN_FRONTEND=noninteractive apt -y install autoconf automake zlib1g-dev libglib2.0-dev libxml2-dev gtk-doc-tools autopoint libtool libbz2-dev libgdk-pixbuf2.0-dev make libgtk-3-dev libgsf-1-dev libpango1.0-dev libcairo2-dev intltool librsvg2-dev libxslt1-dev
script:
- ACVER=`perl -ne '$ep=$1 if /^m4_define.*goffice_version_epoch.*\[(\d+)\]/; $ma=$1 if /^m4_define.*goffice_version_major.*\[(\d+)\]/; $mi=$1 if /^m4_define.*goffice_version_minor.*\[(\S+)\]/; END { print "$ep.$ma.$mi\n"; }' configure.ac`
- echo ${ACVER}
- echo ${TARBALL_ARTIFACT_PATH}
- ./autogen.sh --disable-dependency-tracking
- make -j4
- make dist
- gunzip <"${CI_PROJECT_NAME}-${ACVER}.tar.gz" | xz > ${TARBALL_ARTIFACT_PATH}
- rm -f "${CI_PROJECT_NAME}-${ACVER}.tar.gz" "${CI_PROJECT_NAME}-${ACVER}.tar.bz2"
artifacts:
name: "${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
when: "always"
paths:
- "${TARBALL_ARTIFACT_PATH}"