Add a template for projects using the Perl ExtUtils::MakeMaker
setup
Signed-off-by: Daniel P. Berrange <berrange(a)redhat.com>
---
jobs/perl-makemaker.yaml | 105 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 105 insertions(+)
create mode 100644 jobs/perl-makemaker.yaml
diff --git a/jobs/perl-makemaker.yaml b/jobs/perl-makemaker.yaml
new file mode 100644
index 0000000..a6b5215
--- /dev/null
+++ b/jobs/perl-makemaker.yaml
@@ -0,0 +1,105 @@
+
+- job-template:
+ id: perl-makemaker-build-job
+ name: '{name}-build'
+ project-type: matrix
+ description: '{title} Build'
+ autogen_args: ''
+ workspace: '{name}'
+ block-downstream: true
+ block-upstream: true
+ properties:
+ - build-discarder:
+ days-to-keep: 30
+ num-to-keep: 1000
+ scm:
+ - git:
+ url:
git://n64.pufty.ci.centos.org/{name}.git
+ branches:
+ - origin/master
+ clean: true
+ triggers:
+ - reverse:
+ jobs: '{obj:parent_jobs}'
+ - pollscm:
+ cron: "H/20 * * * *"
+ axes:
+ - axis:
+ name: systems
+ type: slave
+ values: '{obj:machines}'
+ builders:
+ - shell: |
+ perl Makefile.PL PREFIX="$VIRT_PREFIX"
+ make -j{smp}
+ make -j{smp} install
+ make -j{smp} manifest
+ publishers:
+ - email:
+ recipients: '{obj:spam}'
+ notify-every-unstable-build: true
+ send-to-individuals: false
+
+
+- job-template:
+ id: perl-makemaker-test-job
+ name: '{name}-test'
+ project-type: matrix
+ description: '{title} Test'
+ test_args: ''
+ workspace: '{name}'
+ block-downstream: true
+ block-upstream: true
+ properties:
+ - build-discarder:
+ days-to-keep: 30
+ num-to-keep: 1000
+ triggers:
+ - reverse:
+ jobs: '{obj:parent_jobs}'
+ axes:
+ - axis:
+ name: systems
+ type: slave
+ values: '{obj:machines}'
+ builders:
+ - shell: |
+ make -j{smp} test {test_args}
+ publishers:
+ - email:
+ recipients: '{obj:spam}'
+ notify-every-unstable-build: true
+ send-to-individuals: false
+
+- job-template:
+ id: perl-makemaker-rpm-job
+ name: '{name}-rpm'
+ project-type: matrix
+ description: '{title} RPM'
+ archive_format: gz
+ workspace: '{name}'
+ block-downstream: true
+ block-upstream: true
+ properties:
+ - build-discarder:
+ days-to-keep: 30
+ num-to-keep: 1000
+ triggers:
+ - reverse:
+ jobs: '{obj:parent_jobs}'
+ axes:
+ - axis:
+ name: systems
+ type: slave
+ values: '{obj:machines}'
+ builders:
+ - shell: |
+ sed -i -e 's/BuildRequires: libvirt.*devel.*//' *.spec
+ rm -f *.tar.{archive_format}
+ make -j{smp} dist
+ rpmbuild -ta *.tar.{archive_format}
+ publishers:
+ - email:
+ recipients: '{obj:spam}'
+ notify-every-unstable-build: true
+ send-to-individuals: false
--
2.7.4