-
Notifications
You must be signed in to change notification settings - Fork 3
/
.gitlab-ci.yml
64 lines (57 loc) · 2.14 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
include:
- "https://codebase.helmholtz.cloud/m-team/tools/ci-voodoo/raw/master/ci-include/generic-ci.yml"
- "https://codebase.helmholtz.cloud/m-team/tools/ci-voodoo/raw/master/ci-include/pipeline-jobs.yml"
- "https://codebase.helmholtz.cloud/m-team/tools/ci-voodoo/raw/master/ci-include/pipeline-jobs-publish-to-repo.yml"
- "https://codebase.helmholtz.cloud/m-team/tools/ci-voodoo/raw/master/ci-include/github-status-sync.yml"
default:
tags:
- linux
variables:
UPSTREAM_PROJECT: dianagudu/motley_cue
STAGING_BRANCH_NAME: "staging"
DOCKER_IMAGE_NAMESPACE: "marcvs/build"
DOCKER_IMAGE_NAME: "motley-cue"
#PREREL_BRANCH_NAME: 'ci/adapt-to-pam-ssh-oidc'
#TARGET_REPO: 'devel'
# The following varialbes can be overwritten only in specific targets
# See generic-ci.yml -> .repo-definition for the full list
# REPO_BASE => deprecated
# REPO_USER
# REPO_HOST
# PUBLISH_BUILD_RESULTS_REPO: 'devel'
# PUBLISH_TESTED_RESULTS_REPO: 'prerel'
# PUBLISH_MASTER_RESULTS_REPO: 'for-prod'
# PREREL_BRANCH_NAME: 'prerel'
# See generic-ci.yml -> .build-definition for the full list
# DOCKER_IMAGE_VERSION
# DOCKER_IMAGE_VERSION_WINDOWS
build-centos-7:
extends:
- .build-centos-7
script:
- |
# Force RPM's python-bytecompile script to use python3
sed "s@^default_python@default_python=python3\n#default_python@" -i /usr/lib/rpm/brp-python-bytecompile
echo "typing-extensions" >> requirements.txt
- !reference [.rpm-build-script]
build-ubuntu-bionic:
extends:
- .build-ubuntu-bionic
script:
- |
cat debian/rules \
| sed s/"dh_virtualenv --python python3"/"dh_virtualenv --python python3.8"/ \
> debian/new-rules
cat debian/new-rules > debian/rules
make debsource
dpkg-buildpackage -uc -us
##########################################################################
# Integration (These might to to a central job def)
trigger-integration-tests:
variables:
TRIGGER_TOKEN: ${TRIGGER_TOKEN_OIDC_SSH_MOTLEY_CUE}
API_TOKEN: ${API_TOKEN_OIDC_SSH_MOTLEY_CUE}
# api token needs "read_api" privileges of developer
extends:
- .trigger-integration-tests-ssh-oidc