-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
56 lines (50 loc) · 1.76 KB
/
.gitlab-ci.yml
File metadata and controls
56 lines (50 loc) · 1.76 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
include:
- 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}"
stages:
- "build"
- "release"
# Enable merge request pipelines and avoid duplicate pipelines
# https://docs.gitlab.com/ee/ci/yaml/index.html#switch-between-branch-pipelines-and-merge-request-pipelines
workflow:
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS && $CI_PIPELINE_SOURCE == "push"
when: never
- if: '$CI_COMMIT_TAG'
- if: '$CI_COMMIT_BRANCH'
variables:
TARBALL_ARTIFACT_PATH: "${CI_PROJECT_NAME}-${CI_COMMIT_TAG}.tar.gz"
.default-build:
script:
- apt-get update
- apt-get install -o APT::Install-Recommends=false -y autoconf autoconf-archive pkgconf libgirepository1.0-dev gnome-common libatk1.0-dev libatk-bridge2.0-dev libatspi2.0-dev libdbus-1-dev libglib2.0-dev default-jdk-headless:native java-common x11-utils
- ./autogen.sh
- ./configure
- make
artifacts:
when: always
name: "java-atk-wrapper-${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
paths:
- "config.log"
debian-stable:
extends: .default-build
stage: build
image: debian:stable
build-release-tarball:
stage: "build"
script:
- dnf install --assumeyes which autoconf autoconf-archive pkg-config java-devel gcc gcc-c++ clang atk-devel glib2-devel gtk2-devel xprop gtk3-devel at-spi2-atk-devel at-spi2-core-devel gobject-introspection-devel make
- ./autogen.sh
- ./configure
- make
- make dist
- make distcheck
artifacts:
name: "${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}"
when: "always"
paths:
- "${TARBALL_ARTIFACT_PATH}"