]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
create a ceph-installer-merged job
authorAlfredo Deza <adeza@redhat.com>
Tue, 1 Mar 2016 14:14:32 +0000 (09:14 -0500)
committerAlfredo Deza <adeza@redhat.com>
Tue, 1 Mar 2016 15:09:15 +0000 (10:09 -0500)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ceph-installer-coverage/build/build [new file with mode: 0644]
ceph-installer-coverage/config/definitions/ceph-installer-merged.yml [new file with mode: 0644]

diff --git a/ceph-installer-coverage/build/build b/ceph-installer-coverage/build/build
new file mode 100644 (file)
index 0000000..64cdb28
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+# the following two methods exist in scripts/build_utils.sh
+pkgs=( "pytest" "pytest-coverage" )
+install_python_packages "pkgs[@]"
+
+
+# run py.test, output both junit from unit tests and coverage report (should
+# spit out a coverage.xml file)
+$VENV/py.test -v  --junitxml junit.xml --cov-report xml --cov ceph_installer
diff --git a/ceph-installer-coverage/config/definitions/ceph-installer-merged.yml b/ceph-installer-coverage/config/definitions/ceph-installer-merged.yml
new file mode 100644 (file)
index 0000000..1574b41
--- /dev/null
@@ -0,0 +1,47 @@
+- job:
+    name: ceph-installer-merged
+    node: small && (trusty || centos)
+    project-type: freestyle
+    defaults: global
+    display-name: 'ceph-installer: master merge build'
+    quiet-period: 5
+    block-downstream: false
+    block-upstream: false
+    retry-count: 3
+    properties:
+      - github:
+          url: https://github.com/ceph/ceph-installer
+    logrotate:
+      daysToKeep: -1
+      numToKeep: 10
+      artifactDaysToKeep: -1
+      artifactNumToKeep: -1
+
+    triggers:
+      - github
+
+    scm:
+      - git:
+          url: https://github.com/ceph/ceph-installer
+          branches:
+            - master
+          browser: auto
+          skip-tag: true
+          timeout: 20
+
+    builders:
+      - shell:
+          !include-raw:
+            - ../../../scripts/build_utils.sh
+            - ../../build/build
+
+    publishers:
+      - cobertura:
+          results: coverage.xml
+          only-stable: "true"
+          fail-no-reports: "true"
+          targets:
+            - method:
+                healthy: 50
+      - junit:
+          results: junit.xml