-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
81 lines (62 loc) · 2.81 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
stages:
- prep
- build
build-fc32-x86_64:
stage: prep
before_script:
- mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
- mkdir -p ~/mock
- cp mock/* ~/mock/
- cp project.spec ~/rpmbuild/SPECS/
- rm -rf ~/rpmbuild/SOURCES/*
- cp SOURCES/* ~/rpmbuild/SOURCES/
script:
- (if [[ $CI_BUILD_REF_NAME == "master" ]]; then gitlab-build.sh fc32-x86_64 project.spec /mnt/repo/atomic-testing/fedora/32/x86_64 ; else gitlab-build.sh fc32-x86_64 project.spec /mnt/repo/atomic-bleeding/fedora/32/x86_64 ; fi )
# Kali ??
# EOL: ??
build-kali-x86_64:
stage: build
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 project.spec /mnt/repo/atomic-testing/debian/; else dist=kali arch=amd64 ~/bin/build-debian.sh -b project.spec /mnt/repo/atomic-bleeding/debian/; fi )
build-xenial-x86_64:
stage: build
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=xenial arch=amd64 ~/bin/build-debian.sh -b project.spec /mnt/repo/atomic-testing/debian/; else dist=xenial arch=amd64 ~/bin/build-debian.sh -b project.spec /mnt/repo/atomic-bleeding/debian/; fi )
build-el7-x86_64:
stage: prep
before_script:
- mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
- mkdir -p ~/mock
- cp mock/* ~/mock/
- cp *.spec ~/rpmbuild/SPECS/
- rm -rf ~/rpmbuild/SOURCES/*
- cp SOURCES/* ~/rpmbuild/SOURCES/
script:
- (if [[ $CI_BUILD_REF_NAME == "master" ]]; then gitlab-build.sh el7-x86_64 project.spec /mnt/repo/atomic-testing/centos/7/x86_64/ ; else gitlab-build.sh el7-x86_64 project.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/
- rm -rf ~/rpmbuild/SOURCES/*
- cp SOURCES/* ~/rpmbuild/SOURCES/
script:
- (if [[ $CI_BUILD_REF_NAME == "master" ]]; then gitlab-build.sh el8-x86_64 project.spec /mnt/repo/atomic-testing/centos/8/x86_64/ ; else gitlab-build.sh el8-x86_64 project.spec /mnt/repo/atomic-bleeding/centos/8/x86_64/ ; fi )