From 48cbb7795719a0312654c897af74011fbb57a3dd Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Tue, 1 Mar 2016 09:14:32 -0500 Subject: [PATCH] create a ceph-installer-merged job Signed-off-by: Alfredo Deza --- ceph-installer-coverage/build/build | 10 ++++ .../definitions/ceph-installer-merged.yml | 47 +++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 ceph-installer-coverage/build/build create mode 100644 ceph-installer-coverage/config/definitions/ceph-installer-merged.yml diff --git a/ceph-installer-coverage/build/build b/ceph-installer-coverage/build/build new file mode 100644 index 00000000..64cdb288 --- /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 00000000..1574b411 --- /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 -- 2.39.5