加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.gitlab-ci.yml 4.01 KB
一键复制 编辑 原始数据 按行查看 历史
Scott R. Shinn 提交于 2020-08-31 10:03 . Clean sources before build
stages:
- prep
- build
# 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/
- rm -f ~/rpmbuild/SOURCES/*
- 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 openvas-scanner.spec /mnt/repo/atomic-testing/debian/; else dist=kali arch=amd64 ~/bin/build-debian.sh -b openvas-scanner.spec /mnt/repo/atomic-bleeding/debian/; fi )
# Ubuntu 16
# EOL: 04/01/2021
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/
- rm -f ~/rpmbuild/SOURCES/*
- 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 openvas-scanner.spec /mnt/repo/atomic-testing/debian/; else dist=xenial arch=amd64 ~/bin/build-debian.sh -b openvas-scanner.spec /mnt/repo/atomic-bleeding/debian/; fi )
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/
- rm -f ~/rpmbuild/SOURCES/*
- cp SOURCES/* ~/rpmbuild/SOURCES/
script:
- (if [[ $CI_BUILD_REF_NAME == "master" ]]; then gitlab-build.sh el7-x86_64 openvas-scanner.spec /mnt/repo/atomic-testing/centos/7/x86_64/ ; else gitlab-build.sh el7-x86_64 openvas-scanner.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 -f ~/rpmbuild/SOURCES/*
- cp SOURCES/* ~/rpmbuild/SOURCES/
script:
- (if [[ $CI_BUILD_REF_NAME == "master" ]]; then gitlab-build.sh el8-x86_64 openvas-scanner.spec /mnt/repo/atomic-testing/centos/8/x86_64/ ; else gitlab-build.sh el8-x86_64 openvas-scanner.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 openvas-scanner.spec ~/rpmbuild/SPECS/
- rm -f ~/rpmbuild/SOURCES/*
- cp SOURCES/* ~/rpmbuild/SOURCES/
script:
- (if [[ $CI_BUILD_REF_NAME == "master" ]]; then gitlab-build.sh fc32-x86_64 openvas-scanner.spec /mnt/repo/atomic-testing/fedora/32/x86_64 ; else gitlab-build.sh fc32-x86_64 openvas-scanner.spec /mnt/repo/atomic-bleeding/fedora/32/x86_64 ; fi )
build-fc29-x86_64:
stage: build
before_script:
- mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
- mkdir -p ~/mock
- cp mock/* ~/mock/
- cp openvas-scanner.spec ~/rpmbuild/SPECS/
- cp SOURCES/* ~/rpmbuild/SOURCES/
script:
- (if [[ $CI_BUILD_REF_NAME == "master" ]]; then gitlab-build.sh fc29-x86_64 openvas-scanner.spec /mnt/repo/atomic-testing/fedora/29/x86_64 ; else gitlab-build.sh fc29-x86_64 openvas-scanner.spec /mnt/repo/atomic-bleeding/fedora/29/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 openvas-scanner.spec ~/rpmbuild/SPECS/
- rm -f ~/rpmbuild/SOURCES/*
- cp SOURCES/* ~/rpmbuild/SOURCES/
script:
- (if [[ $CI_BUILD_REF_NAME == "master" ]]; then gitlab-build.sh fc30-x86_64 openvas-scanner.spec /mnt/repo/atomic-testing/fedora/30/x86_64 ; else gitlab-build.sh fc30-x86_64 openvas-scanner.spec /mnt/repo/atomic-bleeding/fedora/30/x86_64 ; fi )
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化