Add certificate generation
This commit is contained in:
8
roles/ovirt.manageiq/automation/README.md
Normal file
8
roles/ovirt.manageiq/automation/README.md
Normal file
@@ -0,0 +1,8 @@
|
||||
Continuous Integration Scripts
|
||||
==============================
|
||||
|
||||
This directory contains scripts for Continuous Integration provided by
|
||||
[oVirt Jenkins](http://jenkins.ovirt.org/)
|
||||
system and follows the standard defined in
|
||||
[Build and test standards](http://www.ovirt.org/CI/Build_and_test_standards)
|
||||
wiki page.
|
||||
1
roles/ovirt.manageiq/automation/build-artifacts-manual.req
Symbolic link
1
roles/ovirt.manageiq/automation/build-artifacts-manual.req
Symbolic link
@@ -0,0 +1 @@
|
||||
build-artifacts.req
|
||||
29
roles/ovirt.manageiq/automation/build-artifacts-manual.sh
Executable file
29
roles/ovirt.manageiq/automation/build-artifacts-manual.sh
Executable file
@@ -0,0 +1,29 @@
|
||||
#!/bin/bash -xe
|
||||
|
||||
# remove any previous artifacts
|
||||
rm -rf output
|
||||
make clean
|
||||
|
||||
# Get the tarball
|
||||
./build.sh dist
|
||||
|
||||
# create the src.rpm, assuming the tarball is in the project's directory
|
||||
rpmbuild \
|
||||
-D "_srcrpmdir $PWD/output" \
|
||||
-D "_topmdir $PWD/rpmbuild" \
|
||||
-ts ./*.gz
|
||||
|
||||
# install any build requirements
|
||||
yum-builddep output/*src.rpm
|
||||
|
||||
# create the rpms
|
||||
rpmbuild \
|
||||
-D "_rpmdir $PWD/output" \
|
||||
-D "_topmdir $PWD/rpmbuild" \
|
||||
--rebuild output/*.src.rpm
|
||||
|
||||
# Store any relevant artifacts in exported-artifacts for the ci system to
|
||||
# archive
|
||||
[[ -d exported-artifacts ]] || mkdir -p exported-artifacts
|
||||
find output -iname \*rpm -exec mv "{}" exported-artifacts/ \;
|
||||
mv ./*tar.gz exported-artifacts/
|
||||
3
roles/ovirt.manageiq/automation/build-artifacts.packages
Normal file
3
roles/ovirt.manageiq/automation/build-artifacts.packages
Normal file
@@ -0,0 +1,3 @@
|
||||
yum-utils
|
||||
ansible
|
||||
git
|
||||
29
roles/ovirt.manageiq/automation/build-artifacts.sh
Executable file
29
roles/ovirt.manageiq/automation/build-artifacts.sh
Executable file
@@ -0,0 +1,29 @@
|
||||
#!/bin/bash -xe
|
||||
|
||||
# remove any previous artifacts
|
||||
rm -rf output
|
||||
rm -f ./*tar.gz
|
||||
|
||||
# Get the tarball
|
||||
./build.sh dist
|
||||
|
||||
# create the src.rpm
|
||||
rpmbuild \
|
||||
-D "_srcrpmdir $PWD/output" \
|
||||
-D "_topmdir $PWD/rpmbuild" \
|
||||
-ts ./*.gz
|
||||
|
||||
# install any build requirements
|
||||
yum-builddep output/*src.rpm
|
||||
|
||||
# create the rpms
|
||||
rpmbuild \
|
||||
-D "_rpmdir $PWD/output" \
|
||||
-D "_topmdir $PWD/rpmbuild" \
|
||||
--rebuild output/*.src.rpm
|
||||
|
||||
# Store any relevant artifacts in exported-artifacts for the ci system to
|
||||
# archive
|
||||
[[ -d exported-artifacts ]] || mkdir -p exported-artifacts
|
||||
find output -iname \*rpm -exec mv "{}" exported-artifacts/ \;
|
||||
mv ./*tar.gz exported-artifacts/
|
||||
3
roles/ovirt.manageiq/automation/check-patch.packages
Normal file
3
roles/ovirt.manageiq/automation/check-patch.packages
Normal file
@@ -0,0 +1,3 @@
|
||||
yum-utils
|
||||
git
|
||||
ansible
|
||||
27
roles/ovirt.manageiq/automation/check-patch.sh
Executable file
27
roles/ovirt.manageiq/automation/check-patch.sh
Executable file
@@ -0,0 +1,27 @@
|
||||
#!/bin/bash -xe
|
||||
|
||||
# remove any previous artifacts
|
||||
rm -rf output
|
||||
rm -f ./*tar.gz
|
||||
|
||||
# Get the tarball
|
||||
./build.sh dist
|
||||
|
||||
# create the src.rpm
|
||||
rpmbuild \
|
||||
-D "_srcrpmdir $PWD/output" \
|
||||
-D "_topmdir $PWD/rpmbuild" \
|
||||
-ts ./*.gz
|
||||
|
||||
# install any build requirements
|
||||
yum-builddep output/*src.rpm
|
||||
|
||||
# create the rpms
|
||||
rpmbuild \
|
||||
-D "_rpmdir $PWD/output" \
|
||||
-D "_topmdir $PWD/rpmbuild" \
|
||||
--rebuild output/*.src.rpm
|
||||
|
||||
[[ -d exported-artifacts ]] || mkdir -p exported-artifacts
|
||||
find output -iname \*rpm -exec mv "{}" exported-artifacts/ \;
|
||||
mv *.tar.gz exported-artifacts
|
||||
Reference in New Issue
Block a user