-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
132 lines (96 loc) · 4.41 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
stages:
- prep
- build
- package
build-el7-x86_64:
stage: build
before_script:
- mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
- mkdir -p ~/mock
- cp mock/* ~/mock/
- cp *.spec ~/rpmbuild/SPECS/
- cp SOURCES/* ~/rpmbuild/SOURCES/
script:
- (if [[ $CI_BUILD_REF_NAME == "master" ]]; then gitlab-build.sh el7-x86_64 gvm-libs.spec /mnt/repo/atomic-testing/centos/7/x86_64/ ; else gitlab-build.sh el7-x86_64 gvm-libs.spec /mnt/repo/atomic-bleeding/centos/7/x86_64/ ; fi )
build-el8-x86_64:
stage: prep
before_script:
- mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
- mkdir -p ~/mock
- cp mock/* ~/mock/
- cp *.spec ~/rpmbuild/SPECS/
- cp SOURCES/* ~/rpmbuild/SOURCES/
script:
- (if [[ $CI_BUILD_REF_NAME == "master" ]]; then gitlab-build.sh el8-x86_64 gvm-libs.spec /mnt/repo/atomic-testing/centos/8/x86_64/ ; else gitlab-build.sh el8-x86_64 gvm-libs.spec /mnt/repo/atomic-bleeding/centos/8/x86_64/ ; fi )
build-fc32-x86_64:
stage: prep
before_script:
- mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
- mkdir -p ~/mock
- cp mock/* ~/mock/
- cp gvm-libs.spec ~/rpmbuild/SPECS/
- cp SOURCES/* ~/rpmbuild/SOURCES/
script:
- (if [[ $CI_BUILD_REF_NAME == "master" ]]; then gitlab-build.sh fc32-x86_64 gvm-libs.spec /mnt/repo/atomic-testing/fedora/32/x86_64 ; else gitlab-build.sh fc32-x86_64 gvm-libs.spec /mnt/repo/atomic-bleeding/fedora/32/x86_64 ; fi )
build-fc30-x86_64:
stage: build
before_script:
- mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
- mkdir -p ~/mock
- cp mock/* ~/mock/
- cp gvm-libs.spec ~/rpmbuild/SPECS/
- cp SOURCES/* ~/rpmbuild/SOURCES/
script:
- (if [[ $CI_BUILD_REF_NAME == "master" ]]; then gitlab-build.sh fc30-x86_64 gvm-libs.spec /mnt/repo/atomic-testing/fedora/30/x86_64 ; else gitlab-build.sh fc30-x86_64 gvm-libs.spec /mnt/repo/atomic-bleeding/fedora/30/x86_64 ; fi )
build-fc29-x86_64:
stage: package
before_script:
- mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
- mkdir -p ~/mock
- cp mock/* ~/mock/
- cp gvm-libs.spec ~/rpmbuild/SPECS/
- cp SOURCES/* ~/rpmbuild/SOURCES/
script:
- (if [[ $CI_BUILD_REF_NAME == "master" ]]; then gitlab-build.sh fc29-x86_64 gvm-libs.spec /mnt/repo/atomic-testing/fedora/29/x86_64 ; else gitlab-build.sh fc29-x86_64 gvm-libs.spec /mnt/repo/atomic-bleeding/fedora/29/x86_64 ; fi )
# Ubuntu 16
# EOL: 04/01/2021
build-xenial-x86_64:
stage: package
before_script:
- mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
- rm -rf ~/rpmbuild/BUILD/* || true
- cp gvm-libs.spec ~/rpmbuild/SPECS/
- cp SOURCES/* ~/rpmbuild/SOURCES/
- git clone https://gitlab.dev.atomicorp.com/atomicrocketturtle/buildsys-tools
- cp buildsys-tools/* ~/bin/
- chmod +x ~/bin/build-debian.sh
script:
- (if [[ $CI_BUILD_REF_NAME == "master" ]]; then dist=xenial arch=amd64 ~/bin/build-debian.sh -b gvm-libs.spec /mnt/repo/atomic-testing/debian/; else dist=xenial arch=amd64 ~/bin/build-debian.sh -b gvm-libs.spec /mnt/repo/atomic-bleeding/debian/; fi )
# Ubuntu 18
# EOL:
build-bionic-x86_64:
stage: package
before_script:
- mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
- rm -rf ~/rpmbuild/BUILD/* || true
- cp gvm-libs.spec ~/rpmbuild/SPECS/
- cp SOURCES/* ~/rpmbuild/SOURCES/
- git clone https://gitlab.dev.atomicorp.com/atomicrocketturtle/buildsys-tools
- cp buildsys-tools/* ~/bin/
- chmod +x ~/bin/build-debian.sh
script:
- (if [[ $CI_BUILD_REF_NAME == "master" ]]; then dist=bionic arch=amd64 ~/bin/build-debian.sh -b gvm-libs.spec /mnt/repo/atomic-testing/debian/; else dist=bionic arch=amd64 ~/bin/build-debian.sh -b gvm-libs.spec /mnt/repo/atomic-bleeding/debian/; fi )
# Ubuntu 16
# EOL: 04/01/2021
build-kali-x86_64:
stage: package
before_script:
- mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
- rm -rf ~/rpmbuild/BUILD/* || true
- cp *.spec ~/rpmbuild/SPECS/
- cp SOURCES/* ~/rpmbuild/SOURCES/
- git clone https://gitlab.dev.atomicorp.com/atomicrocketturtle/buildsys-tools
- cp buildsys-tools/* ~/bin/
- chmod +x ~/bin/build-debian.sh
script:
- (if [[ $CI_BUILD_REF_NAME == "master" ]]; then dist=kali arch=amd64 ~/bin/build-debian.sh -b gvm-libs.spec /mnt/repo/atomic-testing/debian/; else dist=kali arch=amd64 ~/bin/build-debian.sh -b gvm-libs.spec /mnt/repo/atomic-bleeding/debian/; fi )