-
Notifications
You must be signed in to change notification settings - Fork 34
/
.gitlab-ci.yml
75 lines (64 loc) · 2.2 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
64
65
66
67
68
69
70
71
72
73
74
75
include: 'https://raw.githubusercontent.com/Nitrokey/common-ci-jobs/master/common_jobs.yml'
stages:
- pull-github
- fetch
- build
- deploy
variables:
#Repo for shared scripts (pull.sh release.sh, nightly_upload.sh):
GIT_STRATEGY: clone #This seems to have no effect also set in webinterface
GIT_DEPTH: 0 #This seems to have no effect also set in webinterface
GIT_SUBMODULE_STRATEGY: recursive #This seems to have no effect also set in webinterfac
SCRIPTS_REPO: git@git.dotplex.com:nitrokey/gitlab-ci.git
REPO_USER: nitrokey
REPO_NAME: libnitrokey
MAIN_BRANCH: master
COMMON_PULL: "true"
COMMON_UPLOAD_NIGHTLY: "true"
COMMON_GITHUB_RELEASE: "true"
COMMON_UPLOAD_FILES: "false"
fetch-and-package:
image: registry.git.dotplex.com/nitrokey/libnitrokey/libnitrokey-bionic-gcc8:latest
rules:
- if: '$CI_PIPELINE_SOURCE == "push"'
- if: '$CI_PIPELINE_SOURCE == "schedule"'
- if: '$CI_PIPELINE_SOURCE == "web"'
tags:
- docker
stage: fetch
script:
- ci-script/package.sh
after_script:
- wget $icon_server/checkmark/$CI_COMMIT_REF_NAME/$CI_COMMIT_SHA/$CI_JOB_NAME/$CI_JOB_STATUS/${CI_JOB_URL#*/*/*/}
artifacts:
paths:
- artifacts
- libnitrokey-source-metadata
expire_in: 2 weeks
.build:
rules:
- if: '$CI_PIPELINE_SOURCE == "push"'
- if: '$CI_PIPELINE_SOURCE == "schedule"'
- if: '$CI_PIPELINE_SOURCE == "web"'
tags:
- docker
stage: build
script:
- ci-script/build.sh
after_script:
- wget $icon_server/checkmark/$CI_COMMIT_REF_NAME/$CI_COMMIT_SHA/$CI_JOB_NAME/$CI_JOB_STATUS/${CI_JOB_URL#*/*/*/}
build-bionic-gcc8:
extends: .build
image: registry.git.dotplex.com/nitrokey/libnitrokey/libnitrokey-bionic-gcc8:latest
build-bionic-gcc7:
extends: .build
image: registry.git.dotplex.com/nitrokey/libnitrokey/libnitrokey-bionic-gcc7:latest
build-bionic-gcc6:
extends: .build
image: registry.git.dotplex.com/nitrokey/libnitrokey/libnitrokey-bionic-gcc6:latest
build-bionic-gcc5:
extends: .build
image: registry.git.dotplex.com/nitrokey/libnitrokey/libnitrokey-bionic-gcc5:latest
build-bionic-llvm7:
extends: .build
image: registry.git.dotplex.com/nitrokey/libnitrokey/libnitrokey-bionic-llvm7:latest