blob: ff3fae16e0924965de2a0114eb3c822b072e302b [file] [log] [blame]
Lott, Christopher (cl778h)c8e8ea92020-03-05 08:40:19 -05001# The ric-plt/lib/rmr repository contains two projects:
2# 1) C shared library published as deb/rpm to PackageCloud.io
3# 2) Python bindings published as package to PyPI.org
Lott, Christopher (cl778h)f14966f2019-06-04 10:38:14 -04004---
5- project:
6 name: ric-plt-lib-rmr-project-view
7 project-name: ric-plt-lib-rmr
8 views:
9 - project-view
10
Andrew Grimbergadf550e2019-06-11 13:40:50 -070011- project:
12 name: ric-plt-lib-rmr-info
13 project: ric-plt/lib/rmr
14 project-name: ric-plt-lib-rmr
15 build-node: centos7-builder-1c-1g
Andrew Grimbergadf550e2019-06-11 13:40:50 -070016 jobs:
17 - gerrit-info-yaml-verify
Lott, Christopher (cl778h)3f5f89b2019-08-05 10:25:58 -040018
Lott, Christopher (cl778h)557b88a2019-09-27 06:01:54 -040019- rmr_common: &rmr_common
20 name: rmr-common
Lott, Christopher (cl778h)3f5f89b2019-08-05 10:25:58 -040021 # git repo
22 project: ric-plt/lib/rmr
Lott, Christopher (cl778h)c8e8ea92020-03-05 08:40:19 -050023 # maven settings file has credentials to archive artifacts
Lott, Christopher (cl778h)3f5f89b2019-08-05 10:25:58 -040024 mvn-settings: ric-plt-lib-rmr-settings
Lott, Christopher (cl778h)c8e8ea92020-03-05 08:40:19 -050025
26### RMR C LIBRARY ###
27
28- rmr_c_common: &rmr_c_common
29 name: rmr-c-common
30 # jenkins job name prefix
31 project-name: ric-plt-lib-rmr-c
32 # test scripts depend on this name
Lott, Christopher (cl778h)7751aa02020-03-30 20:06:30 -040033 build-dir: $WORKSPACE/.build
34 # Use ubuntu base for cmake v3
35 # Use docker variant for packagecloud ruby gem
36 build-node: ubuntu1804-docker-4c-4g
37 # install alien package to build RPMS on ubuntu
38 pre-build: !include-raw-escape:
39 - ../shell/install-deb-alien.sh
Lott, Christopher (cl778h)c8e8ea92020-03-05 08:40:19 -050040 # exclude irrelevant changes
Lott, Christopher (cl778h)557b88a2019-09-27 06:01:54 -040041 gerrit_trigger_file_paths:
42 - compare-type: REG_EXP
43 pattern: '^((?!src/bindings|\/COMMIT_MSG).)*$'
Lott, Christopher (cl778h)caecbb52019-11-11 16:04:43 -050044
Lott, Christopher (cl778h)7751aa02020-03-30 20:06:30 -040045# verify every commit
Lott, Christopher (cl778h)caecbb52019-11-11 16:04:43 -050046- project:
47 <<: *rmr_common
Lott, Christopher (cl778h)c8e8ea92020-03-05 08:40:19 -050048 <<: *rmr_c_common
Lott, Christopher (cl778h)7751aa02020-03-30 20:06:30 -040049 name: ric-plt-lib-rmr-c-verify
50 project-name: ric-plt-lib-rmr-c
51 cmake-opts: -DDEV_PKG=1
52 make-opts: package test ARGS=-V
Lott, Christopher (cl778h)3f5f89b2019-08-05 10:25:58 -040053 jobs:
Lott, Christopher (cl778h)c8e8ea92020-03-05 08:40:19 -050054 - gerrit-cmake-verify
Lott, Christopher (cl778h)3f5f89b2019-08-05 10:25:58 -040055 stream:
Lott, Christopher (cl778h)7751aa02020-03-30 20:06:30 -040056 - master:
57 branch: master
Lott, Christopher (cl778h)c2339be2019-08-22 10:48:39 -040058
Lott, Christopher (cl778h)7751aa02020-03-30 20:06:30 -040059# development library - package and publish
Lott, Christopher (cl778h)c2339be2019-08-22 10:48:39 -040060- project:
Lott, Christopher (cl778h)557b88a2019-09-27 06:01:54 -040061 <<: *rmr_common
Lott, Christopher (cl778h)c8e8ea92020-03-05 08:40:19 -050062 <<: *rmr_c_common
Lott, Christopher (cl778h)7751aa02020-03-30 20:06:30 -040063 name: ric-plt-lib-rmr-c-dev
64 project-name: ric-plt-lib-rmr-c-dev
65 cmake-opts: -DDEV_PKG=1
66 make-opts: package ARGS=-V
67 install-prefix: /usr/local
Lott, Christopher (cl778h)caecbb52019-11-11 16:04:43 -050068 jobs:
Lott, Christopher (cl778h)7751aa02020-03-30 20:06:30 -040069 - oran-gerrit-cmake-pc-stage
70 stream:
71 - master:
72 branch: master
73
74# runtime library - package and publish
75- project:
76 <<: *rmr_common
77 <<: *rmr_c_common
78 name: ric-plt-lib-rmr-c-rt
79 project-name: ric-plt-lib-rmr-c-rt
80 cmake-opts: -DDEV_PKG=0
81 make-opts: package ARGS=-V
82 install-prefix: /usr/local
83 jobs:
84 - oran-gerrit-cmake-pc-stage
Lott, Christopher (cl778h)caecbb52019-11-11 16:04:43 -050085 stream:
86 - master:
87 branch: master
88
Lott, Christopher (cl778h)c8e8ea92020-03-05 08:40:19 -050089# promote deb/rpm from staging to release at PackageCloud.io
90- project:
91 <<: *rmr_common
92 <<: *rmr_c_common
93 name: ric-plt-lib-rmr-c-release
94 # release uses sigul which requires centos
95 build-node: centos7-builder-1c-1g
96 jobs:
97 - gerrit-packagecloud-release-verify
98 - gerrit-packagecloud-release-merge
99
100# analyze C code and test coverage
101- project:
Lott, Christopher (cl778h)7751aa02020-03-30 20:06:30 -0400102 name: ric-plt-lib-rmr-c-sonarqube
Lott, Christopher (cl778h)c8e8ea92020-03-05 08:40:19 -0500103 <<: *rmr_common
104 <<: *rmr_c_common
Lott, Christopher (cl778h)7751aa02020-03-30 20:06:30 -0400105 make-opts: test ARGS=-V
Lott, Christopher (cl778h)c8e8ea92020-03-05 08:40:19 -0500106 sonar-project-file: ""
107 sonar-properties: |
108 sonar.login={sonarcloud_api_token}
109 sonar.projectKey={sonarcloud_project_organization}_{project-name}
110 sonar.projectName={project-name}
111 sonar.organization={sonarcloud_project_organization}
112 sonar.build.sourceEncoding=UTF-8
113 sonar.sources=src/rmr
114 sonar.cfamily.build-wrapper-output=$WORKSPACE/bw-output
115 sonar.cfamily.gcov.reportsPath=test
116 jobs:
117 - gerrit-cmake-sonarqube
118
119### RMR PYTHON PACKAGE ###
120
121- rmr_py_common: &rmr_py_common
122 name: rmr-py-common
Lott, Christopher (cl778h)caecbb52019-11-11 16:04:43 -0500123 # jenkins job name prefix
Lott, Christopher (cl778h)c8e8ea92020-03-05 08:40:19 -0500124 project-name: ric-plt-lib-rmr-py
125 # the pre-build-script installs RHEL packages
Lott, Christopher (cl778h)557b88a2019-09-27 06:01:54 -0400126 build-node: centos7-builder-1c-1g
127 # install prereqs
128 pre-build-script: !include-raw-escape: ../shell/install-rpm-nng-rmr.sh
Lott, Christopher (cl778h)c8e8ea92020-03-05 08:40:19 -0500129 python-version: python3.6
Lott, Christopher (cl778h)557b88a2019-09-27 06:01:54 -0400130 # bindings live in a subdirectory
Lott, Christopher (cl778h)62b40d52019-10-02 15:48:56 -0400131 tox-dir: src/bindings/rmr-python
Lott, Christopher (cl778h)557b88a2019-09-27 06:01:54 -0400132 gerrit_trigger_file_paths:
133 - compare-type: REG_EXP
134 pattern: 'src/bindings/rmr-python/.*'
Lott, Christopher (cl778h)caecbb52019-11-11 16:04:43 -0500135
Lott, Christopher (cl778h)c8e8ea92020-03-05 08:40:19 -0500136# verify py changes on every branch
Lott, Christopher (cl778h)caecbb52019-11-11 16:04:43 -0500137- project:
Lott, Christopher (cl778h)c8e8ea92020-03-05 08:40:19 -0500138 <<: *rmr_common
139 <<: *rmr_py_common
140 name: ric-plt-lib-rmr-py-verify
Lott, Christopher (cl778h)c2339be2019-08-22 10:48:39 -0400141 stream:
E. Scott Daniels0b751402019-11-05 08:34:04 -0500142 - all:
143 branch: '*'
Lott, Christopher (cl778h)c2339be2019-08-22 10:48:39 -0400144 jobs:
Lott, Christopher (cl778h)caecbb52019-11-11 16:04:43 -0500145 - gerrit-pypi-verify
146
147# build and publish distributions to test.pypi.org from master
148- project:
Lott, Christopher (cl778h)c8e8ea92020-03-05 08:40:19 -0500149 <<: *rmr_common
150 <<: *rmr_py_common
151 name: ric-plt-lib-rmr-py-merge
Lott, Christopher (cl778h)caecbb52019-11-11 16:04:43 -0500152 stream:
153 - master:
154 branch: master
155 jobs:
Lott, Christopher (cl778h)4bd789a2019-12-04 10:51:41 -0500156 - gerrit-pypi-merge
Lott, Christopher (cl778h)bbebd0f2019-10-01 11:58:13 -0400157
Lott, Christopher (cl778h)c8e8ea92020-03-05 08:40:19 -0500158# promote package from test.pypi.org to pypi.org
Lott, Christopher (cl778h)bbebd0f2019-10-01 11:58:13 -0400159- project:
Lott, Christopher (cl778h)c8e8ea92020-03-05 08:40:19 -0500160 <<: *rmr_common
161 <<: *rmr_py_common
162 name: ric-plt-lib-rmr-py-release
Lott, Christopher (cl778h)bbebd0f2019-10-01 11:58:13 -0400163 jobs:
Lott, Christopher (cl778h)946a3ac2019-10-29 16:40:47 -0400164 - '{project-name}-gerrit-pypi-release-jobs'
Lott, Christopher (cl778h)601a6cc2019-10-15 15:43:14 -0400165
Lott, Christopher (cl778h)c8e8ea92020-03-05 08:40:19 -0500166# analyze Py code and test coverage
Lott, Christopher (cl778h)601a6cc2019-10-15 15:43:14 -0400167- project:
Lott, Christopher (cl778h)c8e8ea92020-03-05 08:40:19 -0500168 <<: *rmr_common
169 <<: *rmr_py_common
170 name: ric-plt-lib-rmr-py-sonarqube
171 sonar-project-file: ""
172 sonar-properties: |
173 sonar.login={sonarcloud_api_token}
174 sonar.projectKey={sonarcloud_project_organization}_{project-name}
175 sonar.projectName={project-name}
176 sonar.organization={sonarcloud_project_organization}
177 sonar.build.sourceEncoding=UTF-8
178 sonar.sources=src/bindings/rmr-python
179 sonar.exclusions=setup.py,tests/*.py
180 sonar.python.coverage.reportPaths=coverage.xml
Lott, Christopher (cl778h)601a6cc2019-10-15 15:43:14 -0400181 jobs:
Lott, Christopher (cl778h)c8e8ea92020-03-05 08:40:19 -0500182 - gerrit-tox-sonarqube