Signed-off-by: Alfredo Deza <adeza@redhat.com>
--- /dev/null
+#!/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
--- /dev/null
+- 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