X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=jjb%2Fric-plt-xapp-frame-cpp%2Fric-plt-xapp-frame-cpp.yaml;h=41e9d437f89ac192773d8998fd658cf62d12155b;hb=c593c4419578620fcbe14ba0a6b2e7be7910ff64;hp=f28f5156d4f50d32f3a1dbf21b08e474fdbe7deb;hpb=95cc0897e3ee30c58d2f8ea099d6e8ba68e8bc0f;p=ci-management.git diff --git a/jjb/ric-plt-xapp-frame-cpp/ric-plt-xapp-frame-cpp.yaml b/jjb/ric-plt-xapp-frame-cpp/ric-plt-xapp-frame-cpp.yaml index f28f5156..41e9d437 100644 --- a/jjb/ric-plt-xapp-frame-cpp/ric-plt-xapp-frame-cpp.yaml +++ b/jjb/ric-plt-xapp-frame-cpp/ric-plt-xapp-frame-cpp.yaml @@ -13,7 +13,7 @@ jobs: - gerrit-info-yaml-verify -- xapp_frame_cpp_common: &xapp_frame_cpp_common +- _xapp_frame_cpp_common: &xapp_frame_cpp_common name: xapp-frame-cpp-common # git repo project: ric-plt/xapp-frame-cpp @@ -23,29 +23,74 @@ mvn-settings: ric-plt-xapp-frame-cpp-settings # test scripts depend on this name build-dir: $WORKSPACE/build - # use an ubuntu for its modern compiler and cmake - build-node: ubuntu1804-builder-2c-2g + # Use ubuntu base for cmake v3 + # Use docker variant for packagecloud ruby gem + build-node: ubuntu1804-docker-4c-4g + # pre-build scripts for CMake templates: + # install alien package to build RPMS # install RMR per version file in repo pre-build: !include-raw-escape: - - ../shell/install-deb-rmr3.sh - # verify and sonar use cmake - cmake-opts: -DDEV_PKG=1 - make-opts: install test ARGS=-V + - ../shell/install-deb-alien.sh + - ../shell/install-deb-rmr.sh + - ../shell/install-git-RESTful.sh + # skip install in cmake-build.sh + install: false -# verify changes +# verify every commit - project: - name: xapp-frame-cpp-verify <<: *xapp_frame_cpp_common + name: xapp-frame-cpp-verify + cmake-opts: -DDEV_PKG=1 + make-opts: package test ARGS=-V jobs: - gerrit-cmake-verify stream: - master: branch: master +# development library - package and publish +- project: + <<: *xapp_frame_cpp_common + name: ric-plt-xapp-frame-cpp-dev + project-name: '{name}' + cmake-opts: -DDEV_PKG=1 + make-opts: package + install-prefix: /usr/local + jobs: + - gerrit-cmake-packagecloud-stage + stream: + - master: + branch: master + +# runtime library - package and publish +- project: + <<: *xapp_frame_cpp_common + name: ric-plt-xapp-frame-cpp-rt + project-name: '{name}' + cmake-opts: -DDEV_PKG=0 + make-opts: package + install-prefix: /usr/local + jobs: + - gerrit-cmake-packagecloud-stage + stream: + - master: + branch: master + +# promote deb/rpm from staging to release at PackageCloud.io +- project: + <<: *xapp_frame_cpp_common + name: ric-plt-xapp-frame-cpp-release + # release uses sigul which requires centos + build-node: centos7-builder-1c-1g + jobs: + - gerrit-packagecloud-release-verify + - gerrit-packagecloud-release-merge + # analyze C code and test coverage - project: name: xapp-frame-cpp-sonarqube <<: *xapp_frame_cpp_common + make-opts: test ARGS=-V sonar-project-file: "" sonar-properties: | sonar.login={sonarcloud_api_token}