blob: 3a3687a8085f3ff510be9f71bcbc8c8224733de7 [file] [log] [blame]
Lott, Christopher (cl778h)896609e2020-04-06 22:05:32 -04001# C shared library published as deb/rpm to PackageCloud.io
Lott, Christopher (cl778h)f14966f2019-06-04 10:38:14 -04002---
3- project:
4 name: ric-plt-lib-rmr-project-view
5 project-name: ric-plt-lib-rmr
6 views:
7 - project-view
8
Andrew Grimbergadf550e2019-06-11 13:40:50 -07009- project:
10 name: ric-plt-lib-rmr-info
11 project: ric-plt/lib/rmr
12 project-name: ric-plt-lib-rmr
13 build-node: centos7-builder-1c-1g
Andrew Grimbergadf550e2019-06-11 13:40:50 -070014 jobs:
15 - gerrit-info-yaml-verify
Lott, Christopher (cl778h)3f5f89b2019-08-05 10:25:58 -040016
Lott, Christopher (cl778h)557b88a2019-09-27 06:01:54 -040017- rmr_common: &rmr_common
18 name: rmr-common
Lott, Christopher (cl778h)3f5f89b2019-08-05 10:25:58 -040019 # git repo
20 project: ric-plt/lib/rmr
Lott, Christopher (cl778h)c8e8ea92020-03-05 08:40:19 -050021 # maven settings file has credentials to archive artifacts
Lott, Christopher (cl778h)3f5f89b2019-08-05 10:25:58 -040022 mvn-settings: ric-plt-lib-rmr-settings
Lott, Christopher (cl778h)c8e8ea92020-03-05 08:40:19 -050023 # jenkins job name prefix
Lott, Christopher (cl778h)860caa72020-04-27 15:15:37 -040024 project-name: ric-plt-lib-rmr
Lott, Christopher (cl778h)c8e8ea92020-03-05 08:40:19 -050025 # test scripts depend on this name
Lott, Christopher (cl778h)7751aa02020-03-30 20:06:30 -040026 build-dir: $WORKSPACE/.build
27 # Use ubuntu base for cmake v3
28 # Use docker variant for packagecloud ruby gem
29 build-node: ubuntu1804-docker-4c-4g
30 # install alien package to build RPMS on ubuntu
31 pre-build: !include-raw-escape:
32 - ../shell/install-deb-alien.sh
Lott, Christopher (cl778h)c8e8ea92020-03-05 08:40:19 -050033 # exclude irrelevant changes
Lott, Christopher (cl778h)557b88a2019-09-27 06:01:54 -040034 gerrit_trigger_file_paths:
35 - compare-type: REG_EXP
36 pattern: '^((?!src/bindings|\/COMMIT_MSG).)*$'
Lott, Christopher (cl778h)caecbb52019-11-11 16:04:43 -050037
Lott, Christopher (cl778h)7751aa02020-03-30 20:06:30 -040038# verify every commit
Lott, Christopher (cl778h)caecbb52019-11-11 16:04:43 -050039- project:
40 <<: *rmr_common
Lott, Christopher (cl778h)860caa72020-04-27 15:15:37 -040041 name: ric-plt-lib-rmr-verify
Lott, Christopher (cl778h)b9223222020-04-03 11:22:31 -040042 cmake-opts: -DDEV_PKG=1 -DBUILD_DOC=1
43 # skip install in cmake-build.sh
44 install: false
Lott, Christopher (cl778h)7751aa02020-03-30 20:06:30 -040045 make-opts: package test ARGS=-V
Lott, Christopher (cl778h)3f5f89b2019-08-05 10:25:58 -040046 jobs:
Lott, Christopher (cl778h)c8e8ea92020-03-05 08:40:19 -050047 - gerrit-cmake-verify
Lott, Christopher (cl778h)3f5f89b2019-08-05 10:25:58 -040048 stream:
Lott, Christopher (cl778h)7751aa02020-03-30 20:06:30 -040049 - master:
50 branch: master
Lott, Christopher (cl778h)c2339be2019-08-22 10:48:39 -040051
Lott, Christopher (cl778h)7751aa02020-03-30 20:06:30 -040052# development library - package and publish
Lott, Christopher (cl778h)c2339be2019-08-22 10:48:39 -040053- project:
Lott, Christopher (cl778h)557b88a2019-09-27 06:01:54 -040054 <<: *rmr_common
Lott, Christopher (cl778h)860caa72020-04-27 15:15:37 -040055 name: ric-plt-lib-rmr-dev
56 project-name: ric-plt-lib-rmr-dev
Lott, Christopher (cl778h)7751aa02020-03-30 20:06:30 -040057 cmake-opts: -DDEV_PKG=1
58 make-opts: package ARGS=-V
59 install-prefix: /usr/local
Lott, Christopher (cl778h)caecbb52019-11-11 16:04:43 -050060 jobs:
Lott, Christopher (cl778h)b9223222020-04-03 11:22:31 -040061 - gerrit-cmake-packagecloud-stage
Lott, Christopher (cl778h)7751aa02020-03-30 20:06:30 -040062 stream:
63 - master:
64 branch: master
65
66# runtime library - package and publish
67- project:
68 <<: *rmr_common
Lott, Christopher (cl778h)860caa72020-04-27 15:15:37 -040069 name: ric-plt-lib-rmr-rt
70 project-name: ric-plt-lib-rmr-rt
Lott, Christopher (cl778h)7751aa02020-03-30 20:06:30 -040071 cmake-opts: -DDEV_PKG=0
72 make-opts: package ARGS=-V
73 install-prefix: /usr/local
74 jobs:
Lott, Christopher (cl778h)b9223222020-04-03 11:22:31 -040075 - gerrit-cmake-packagecloud-stage
Lott, Christopher (cl778h)caecbb52019-11-11 16:04:43 -050076 stream:
77 - master:
78 branch: master
79
Lott, Christopher (cl778h)c8e8ea92020-03-05 08:40:19 -050080# promote deb/rpm from staging to release at PackageCloud.io
81- project:
82 <<: *rmr_common
Lott, Christopher (cl778h)860caa72020-04-27 15:15:37 -040083 name: ric-plt-lib-rmr-release
Lott, Christopher (cl778h)c8e8ea92020-03-05 08:40:19 -050084 # release uses sigul which requires centos
85 build-node: centos7-builder-1c-1g
86 jobs:
87 - gerrit-packagecloud-release-verify
88 - gerrit-packagecloud-release-merge
89
90# analyze C code and test coverage
91- project:
Lott, Christopher (cl778h)860caa72020-04-27 15:15:37 -040092 name: ric-plt-lib-rmr-sonarqube
Lott, Christopher (cl778h)c8e8ea92020-03-05 08:40:19 -050093 <<: *rmr_common
Lott, Christopher (cl778h)860caa72020-04-27 15:15:37 -040094 cmake-opts: -DDEV_PKG=1
95 make-opts: package test ARGS=-V
Lott, Christopher (cl778h)c8e8ea92020-03-05 08:40:19 -050096 sonar-project-file: ""
97 sonar-properties: |
98 sonar.login={sonarcloud_api_token}
99 sonar.projectKey={sonarcloud_project_organization}_{project-name}
100 sonar.projectName={project-name}
101 sonar.organization={sonarcloud_project_organization}
102 sonar.build.sourceEncoding=UTF-8
103 sonar.sources=src/rmr
104 sonar.cfamily.build-wrapper-output=$WORKSPACE/bw-output
105 sonar.cfamily.gcov.reportsPath=test
Lott, Christopher (cl778h)860caa72020-04-27 15:15:37 -0400106 sonar.cfamily.threads=2
Lott, Christopher (cl778h)c8e8ea92020-03-05 08:40:19 -0500107 jobs:
108 - gerrit-cmake-sonarqube