From: Alfredo Deza Date: Tue, 1 Mar 2016 14:14:32 +0000 (-0500) Subject: create a ceph-installer-merged job X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=48cbb7795719a0312654c897af74011fbb57a3dd;p=ceph-build.git create a ceph-installer-merged job Signed-off-by: Alfredo Deza --- diff --git a/ceph-installer-coverage/build/build b/ceph-installer-coverage/build/build new file mode 100644 index 000000000..64cdb2888 --- /dev/null +++ b/ceph-installer-coverage/build/build @@ -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 index 000000000..1574b4118 --- /dev/null +++ b/ceph-installer-coverage/config/definitions/ceph-installer-merged.yml @@ -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