blob: 60c2f2b9feb5bd0bc20f6fa413c9cfe82c301d58 [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
33 build-dir: $WORKSPACE/build
34 # use an ubuntu for its modern compiler
35 build-node: ubuntu1804-builder-2c-2g
36 # verify and sonar use cmake
37 cmake-opts: -DDEV_PKG=1
38 make-opts: install test ARGS=-V
39 # exclude irrelevant changes
Lott, Christopher (cl778h)557b88a2019-09-27 06:01:54 -040040 gerrit_trigger_file_paths:
41 - compare-type: REG_EXP
42 pattern: '^((?!src/bindings|\/COMMIT_MSG).)*$'
Lott, Christopher (cl778h)caecbb52019-11-11 16:04:43 -050043
Lott, Christopher (cl778h)c8e8ea92020-03-05 08:40:19 -050044# verify c changes on every branch
Lott, Christopher (cl778h)caecbb52019-11-11 16:04:43 -050045- project:
Lott, Christopher (cl778h)c8e8ea92020-03-05 08:40:19 -050046 name: ric-plt-lib-rmr-c-verify
Lott, Christopher (cl778h)caecbb52019-11-11 16:04:43 -050047 <<: *rmr_common
Lott, Christopher (cl778h)c8e8ea92020-03-05 08:40:19 -050048 <<: *rmr_c_common
Lott, Christopher (cl778h)3f5f89b2019-08-05 10:25:58 -040049 jobs:
Lott, Christopher (cl778h)c8e8ea92020-03-05 08:40:19 -050050 - gerrit-cmake-verify
Lott, Christopher (cl778h)3f5f89b2019-08-05 10:25:58 -040051 stream:
E. Scott Daniels0b751402019-11-05 08:34:04 -050052 - all:
53 branch: '*'
Lott, Christopher (cl778h)c2339be2019-08-22 10:48:39 -040054
Lott, Christopher (cl778h)c8e8ea92020-03-05 08:40:19 -050055# build deb/rpm using Docker and publish to PackageCloud.io
56# on merge to master branch
Lott, Christopher (cl778h)c2339be2019-08-22 10:48:39 -040057- project:
Lott, Christopher (cl778h)557b88a2019-09-27 06:01:54 -040058 <<: *rmr_common
Lott, Christopher (cl778h)c8e8ea92020-03-05 08:40:19 -050059 <<: *rmr_c_common
60 name: ric-plt-lib-rmr-c-package
61 # need docker
62 build-node: ubuntu1804-docker-4c-4g
63 # image is not pushed, use simple name and tag
64 docker-name: '{name}'
65 container-tag-method: latest
66 # use host network for network resources
67 docker-build-args: '--network=host -f ci/Dockerfile'
Lott, Christopher (cl778h)caecbb52019-11-11 16:04:43 -050068 jobs:
69 - oran-gerrit-docker-ci-pc-merge
70 stream:
71 - master:
72 branch: master
73
Lott, Christopher (cl778h)c8e8ea92020-03-05 08:40:19 -050074# promote deb/rpm from staging to release at PackageCloud.io
75- project:
76 <<: *rmr_common
77 <<: *rmr_c_common
78 name: ric-plt-lib-rmr-c-release
79 # release uses sigul which requires centos
80 build-node: centos7-builder-1c-1g
81 jobs:
82 - gerrit-packagecloud-release-verify
83 - gerrit-packagecloud-release-merge
84
85# analyze C code and test coverage
86- project:
87 name: ric-plt-lib-rmr-c-sonar
88 <<: *rmr_common
89 <<: *rmr_c_common
90 sonar-project-file: ""
91 sonar-properties: |
92 sonar.login={sonarcloud_api_token}
93 sonar.projectKey={sonarcloud_project_organization}_{project-name}
94 sonar.projectName={project-name}
95 sonar.organization={sonarcloud_project_organization}
96 sonar.build.sourceEncoding=UTF-8
97 sonar.sources=src/rmr
98 sonar.cfamily.build-wrapper-output=$WORKSPACE/bw-output
99 sonar.cfamily.gcov.reportsPath=test
100 jobs:
101 - gerrit-cmake-sonarqube
102
103### RMR PYTHON PACKAGE ###
104
105- rmr_py_common: &rmr_py_common
106 name: rmr-py-common
Lott, Christopher (cl778h)caecbb52019-11-11 16:04:43 -0500107 # jenkins job name prefix
Lott, Christopher (cl778h)c8e8ea92020-03-05 08:40:19 -0500108 project-name: ric-plt-lib-rmr-py
109 # the pre-build-script installs RHEL packages
Lott, Christopher (cl778h)557b88a2019-09-27 06:01:54 -0400110 build-node: centos7-builder-1c-1g
111 # install prereqs
112 pre-build-script: !include-raw-escape: ../shell/install-rpm-nng-rmr.sh
Lott, Christopher (cl778h)c8e8ea92020-03-05 08:40:19 -0500113 python-version: python3.6
Lott, Christopher (cl778h)557b88a2019-09-27 06:01:54 -0400114 # bindings live in a subdirectory
Lott, Christopher (cl778h)62b40d52019-10-02 15:48:56 -0400115 tox-dir: src/bindings/rmr-python
Lott, Christopher (cl778h)557b88a2019-09-27 06:01:54 -0400116 gerrit_trigger_file_paths:
117 - compare-type: REG_EXP
118 pattern: 'src/bindings/rmr-python/.*'
Lott, Christopher (cl778h)caecbb52019-11-11 16:04:43 -0500119
Lott, Christopher (cl778h)c8e8ea92020-03-05 08:40:19 -0500120# verify py changes on every branch
Lott, Christopher (cl778h)caecbb52019-11-11 16:04:43 -0500121- project:
Lott, Christopher (cl778h)c8e8ea92020-03-05 08:40:19 -0500122 <<: *rmr_common
123 <<: *rmr_py_common
124 name: ric-plt-lib-rmr-py-verify
Lott, Christopher (cl778h)c2339be2019-08-22 10:48:39 -0400125 stream:
E. Scott Daniels0b751402019-11-05 08:34:04 -0500126 - all:
127 branch: '*'
Lott, Christopher (cl778h)c2339be2019-08-22 10:48:39 -0400128 jobs:
Lott, Christopher (cl778h)caecbb52019-11-11 16:04:43 -0500129 - gerrit-pypi-verify
130
131# build and publish distributions to test.pypi.org from master
132- project:
Lott, Christopher (cl778h)c8e8ea92020-03-05 08:40:19 -0500133 <<: *rmr_common
134 <<: *rmr_py_common
135 name: ric-plt-lib-rmr-py-merge
Lott, Christopher (cl778h)caecbb52019-11-11 16:04:43 -0500136 stream:
137 - master:
138 branch: master
139 jobs:
Lott, Christopher (cl778h)4bd789a2019-12-04 10:51:41 -0500140 - gerrit-pypi-merge
Lott, Christopher (cl778h)bbebd0f2019-10-01 11:58:13 -0400141
Lott, Christopher (cl778h)c8e8ea92020-03-05 08:40:19 -0500142# promote package from test.pypi.org to pypi.org
Lott, Christopher (cl778h)bbebd0f2019-10-01 11:58:13 -0400143- project:
Lott, Christopher (cl778h)c8e8ea92020-03-05 08:40:19 -0500144 <<: *rmr_common
145 <<: *rmr_py_common
146 name: ric-plt-lib-rmr-py-release
Lott, Christopher (cl778h)bbebd0f2019-10-01 11:58:13 -0400147 jobs:
Lott, Christopher (cl778h)946a3ac2019-10-29 16:40:47 -0400148 - '{project-name}-gerrit-pypi-release-jobs'
Lott, Christopher (cl778h)601a6cc2019-10-15 15:43:14 -0400149
Lott, Christopher (cl778h)c8e8ea92020-03-05 08:40:19 -0500150# analyze Py code and test coverage
Lott, Christopher (cl778h)601a6cc2019-10-15 15:43:14 -0400151- project:
Lott, Christopher (cl778h)c8e8ea92020-03-05 08:40:19 -0500152 <<: *rmr_common
153 <<: *rmr_py_common
154 name: ric-plt-lib-rmr-py-sonarqube
155 sonar-project-file: ""
156 sonar-properties: |
157 sonar.login={sonarcloud_api_token}
158 sonar.projectKey={sonarcloud_project_organization}_{project-name}
159 sonar.projectName={project-name}
160 sonar.organization={sonarcloud_project_organization}
161 sonar.build.sourceEncoding=UTF-8
162 sonar.sources=src/bindings/rmr-python
163 sonar.exclusions=setup.py,tests/*.py
164 sonar.python.coverage.reportPaths=coverage.xml
Lott, Christopher (cl778h)601a6cc2019-10-15 15:43:14 -0400165 jobs:
Lott, Christopher (cl778h)c8e8ea92020-03-05 08:40:19 -0500166 - gerrit-tox-sonarqube