-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
35 lines (28 loc) · 1.26 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
stages:
- build
build-el8-x86_64:
stage: build
before_script:
- mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
- mkdir -p ~/mock
- cp mock/* ~/mock/
- rm -f ~/rpmbuild/SOURCES/*
- git clone https://gitlab.dev.atomicorp.com/atomicrocketturtle/buildsys-tools
- cp buildsys-tools/* ~/bin/
- cp SOURCES/* ~/rpmbuild/SOURCES/
- cp *.spec ~/rpmbuild/SPECS/
script:
- (if [[ $CI_BUILD_REF_NAME == "master" ]]; then gitlab-build.sh el8-x86_64 project.spec /mnt/repo/atomic-testing/centos/8/x86_64/ noasl; else gitlab-build.sh el8-x86_64 project.spec /mnt/repo/atomic-bleeding/centos/8/x86_64/ noasl; fi )
build-fc32-x86_64:
stage: build
before_script:
- mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
- mkdir -p ~/mock
- cp mock/* ~/mock/
- rm -f ~/rpmbuild/SOURCES/*
- git clone https://gitlab.dev.atomicorp.com/atomicrocketturtle/buildsys-tools
- cp buildsys-tools/* ~/bin/
- cp *.spec ~/rpmbuild/SPECS/
- 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/ noasl; else gitlab-build.sh fc32-x86_64 project.spec /mnt/repo/atomic-bleeding/fedora/32/x86_64/ noasl; fi )