Lott, Christopher (cl778h) | c8e8ea9 | 2020-03-05 08:40:19 -0500 | [diff] [blame] | 1 | # 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) | f14966f | 2019-06-04 10:38:14 -0400 | [diff] [blame] | 4 | --- |
| 5 | - project: |
| 6 | name: ric-plt-lib-rmr-project-view |
| 7 | project-name: ric-plt-lib-rmr |
| 8 | views: |
| 9 | - project-view |
| 10 | |
Andrew Grimberg | adf550e | 2019-06-11 13:40:50 -0700 | [diff] [blame] | 11 | - 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 Grimberg | adf550e | 2019-06-11 13:40:50 -0700 | [diff] [blame] | 16 | jobs: |
| 17 | - gerrit-info-yaml-verify |
Lott, Christopher (cl778h) | 3f5f89b | 2019-08-05 10:25:58 -0400 | [diff] [blame] | 18 | |
Lott, Christopher (cl778h) | 557b88a | 2019-09-27 06:01:54 -0400 | [diff] [blame] | 19 | - rmr_common: &rmr_common |
| 20 | name: rmr-common |
Lott, Christopher (cl778h) | 3f5f89b | 2019-08-05 10:25:58 -0400 | [diff] [blame] | 21 | # git repo |
| 22 | project: ric-plt/lib/rmr |
Lott, Christopher (cl778h) | c8e8ea9 | 2020-03-05 08:40:19 -0500 | [diff] [blame] | 23 | # maven settings file has credentials to archive artifacts |
Lott, Christopher (cl778h) | 3f5f89b | 2019-08-05 10:25:58 -0400 | [diff] [blame] | 24 | mvn-settings: ric-plt-lib-rmr-settings |
Lott, Christopher (cl778h) | c8e8ea9 | 2020-03-05 08:40:19 -0500 | [diff] [blame] | 25 | |
| 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) | 7751aa0 | 2020-03-30 20:06:30 -0400 | [diff] [blame^] | 33 | 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) | c8e8ea9 | 2020-03-05 08:40:19 -0500 | [diff] [blame] | 40 | # exclude irrelevant changes |
Lott, Christopher (cl778h) | 557b88a | 2019-09-27 06:01:54 -0400 | [diff] [blame] | 41 | gerrit_trigger_file_paths: |
| 42 | - compare-type: REG_EXP |
| 43 | pattern: '^((?!src/bindings|\/COMMIT_MSG).)*$' |
Lott, Christopher (cl778h) | caecbb5 | 2019-11-11 16:04:43 -0500 | [diff] [blame] | 44 | |
Lott, Christopher (cl778h) | 7751aa0 | 2020-03-30 20:06:30 -0400 | [diff] [blame^] | 45 | # verify every commit |
Lott, Christopher (cl778h) | caecbb5 | 2019-11-11 16:04:43 -0500 | [diff] [blame] | 46 | - project: |
| 47 | <<: *rmr_common |
Lott, Christopher (cl778h) | c8e8ea9 | 2020-03-05 08:40:19 -0500 | [diff] [blame] | 48 | <<: *rmr_c_common |
Lott, Christopher (cl778h) | 7751aa0 | 2020-03-30 20:06:30 -0400 | [diff] [blame^] | 49 | 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) | 3f5f89b | 2019-08-05 10:25:58 -0400 | [diff] [blame] | 53 | jobs: |
Lott, Christopher (cl778h) | c8e8ea9 | 2020-03-05 08:40:19 -0500 | [diff] [blame] | 54 | - gerrit-cmake-verify |
Lott, Christopher (cl778h) | 3f5f89b | 2019-08-05 10:25:58 -0400 | [diff] [blame] | 55 | stream: |
Lott, Christopher (cl778h) | 7751aa0 | 2020-03-30 20:06:30 -0400 | [diff] [blame^] | 56 | - master: |
| 57 | branch: master |
Lott, Christopher (cl778h) | c2339be | 2019-08-22 10:48:39 -0400 | [diff] [blame] | 58 | |
Lott, Christopher (cl778h) | 7751aa0 | 2020-03-30 20:06:30 -0400 | [diff] [blame^] | 59 | # development library - package and publish |
Lott, Christopher (cl778h) | c2339be | 2019-08-22 10:48:39 -0400 | [diff] [blame] | 60 | - project: |
Lott, Christopher (cl778h) | 557b88a | 2019-09-27 06:01:54 -0400 | [diff] [blame] | 61 | <<: *rmr_common |
Lott, Christopher (cl778h) | c8e8ea9 | 2020-03-05 08:40:19 -0500 | [diff] [blame] | 62 | <<: *rmr_c_common |
Lott, Christopher (cl778h) | 7751aa0 | 2020-03-30 20:06:30 -0400 | [diff] [blame^] | 63 | 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) | caecbb5 | 2019-11-11 16:04:43 -0500 | [diff] [blame] | 68 | jobs: |
Lott, Christopher (cl778h) | 7751aa0 | 2020-03-30 20:06:30 -0400 | [diff] [blame^] | 69 | - 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) | caecbb5 | 2019-11-11 16:04:43 -0500 | [diff] [blame] | 85 | stream: |
| 86 | - master: |
| 87 | branch: master |
| 88 | |
Lott, Christopher (cl778h) | c8e8ea9 | 2020-03-05 08:40:19 -0500 | [diff] [blame] | 89 | # 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) | 7751aa0 | 2020-03-30 20:06:30 -0400 | [diff] [blame^] | 102 | name: ric-plt-lib-rmr-c-sonarqube |
Lott, Christopher (cl778h) | c8e8ea9 | 2020-03-05 08:40:19 -0500 | [diff] [blame] | 103 | <<: *rmr_common |
| 104 | <<: *rmr_c_common |
Lott, Christopher (cl778h) | 7751aa0 | 2020-03-30 20:06:30 -0400 | [diff] [blame^] | 105 | make-opts: test ARGS=-V |
Lott, Christopher (cl778h) | c8e8ea9 | 2020-03-05 08:40:19 -0500 | [diff] [blame] | 106 | 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) | caecbb5 | 2019-11-11 16:04:43 -0500 | [diff] [blame] | 123 | # jenkins job name prefix |
Lott, Christopher (cl778h) | c8e8ea9 | 2020-03-05 08:40:19 -0500 | [diff] [blame] | 124 | project-name: ric-plt-lib-rmr-py |
| 125 | # the pre-build-script installs RHEL packages |
Lott, Christopher (cl778h) | 557b88a | 2019-09-27 06:01:54 -0400 | [diff] [blame] | 126 | 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) | c8e8ea9 | 2020-03-05 08:40:19 -0500 | [diff] [blame] | 129 | python-version: python3.6 |
Lott, Christopher (cl778h) | 557b88a | 2019-09-27 06:01:54 -0400 | [diff] [blame] | 130 | # bindings live in a subdirectory |
Lott, Christopher (cl778h) | 62b40d5 | 2019-10-02 15:48:56 -0400 | [diff] [blame] | 131 | tox-dir: src/bindings/rmr-python |
Lott, Christopher (cl778h) | 557b88a | 2019-09-27 06:01:54 -0400 | [diff] [blame] | 132 | gerrit_trigger_file_paths: |
| 133 | - compare-type: REG_EXP |
| 134 | pattern: 'src/bindings/rmr-python/.*' |
Lott, Christopher (cl778h) | caecbb5 | 2019-11-11 16:04:43 -0500 | [diff] [blame] | 135 | |
Lott, Christopher (cl778h) | c8e8ea9 | 2020-03-05 08:40:19 -0500 | [diff] [blame] | 136 | # verify py changes on every branch |
Lott, Christopher (cl778h) | caecbb5 | 2019-11-11 16:04:43 -0500 | [diff] [blame] | 137 | - project: |
Lott, Christopher (cl778h) | c8e8ea9 | 2020-03-05 08:40:19 -0500 | [diff] [blame] | 138 | <<: *rmr_common |
| 139 | <<: *rmr_py_common |
| 140 | name: ric-plt-lib-rmr-py-verify |
Lott, Christopher (cl778h) | c2339be | 2019-08-22 10:48:39 -0400 | [diff] [blame] | 141 | stream: |
E. Scott Daniels | 0b75140 | 2019-11-05 08:34:04 -0500 | [diff] [blame] | 142 | - all: |
| 143 | branch: '*' |
Lott, Christopher (cl778h) | c2339be | 2019-08-22 10:48:39 -0400 | [diff] [blame] | 144 | jobs: |
Lott, Christopher (cl778h) | caecbb5 | 2019-11-11 16:04:43 -0500 | [diff] [blame] | 145 | - gerrit-pypi-verify |
| 146 | |
| 147 | # build and publish distributions to test.pypi.org from master |
| 148 | - project: |
Lott, Christopher (cl778h) | c8e8ea9 | 2020-03-05 08:40:19 -0500 | [diff] [blame] | 149 | <<: *rmr_common |
| 150 | <<: *rmr_py_common |
| 151 | name: ric-plt-lib-rmr-py-merge |
Lott, Christopher (cl778h) | caecbb5 | 2019-11-11 16:04:43 -0500 | [diff] [blame] | 152 | stream: |
| 153 | - master: |
| 154 | branch: master |
| 155 | jobs: |
Lott, Christopher (cl778h) | 4bd789a | 2019-12-04 10:51:41 -0500 | [diff] [blame] | 156 | - gerrit-pypi-merge |
Lott, Christopher (cl778h) | bbebd0f | 2019-10-01 11:58:13 -0400 | [diff] [blame] | 157 | |
Lott, Christopher (cl778h) | c8e8ea9 | 2020-03-05 08:40:19 -0500 | [diff] [blame] | 158 | # promote package from test.pypi.org to pypi.org |
Lott, Christopher (cl778h) | bbebd0f | 2019-10-01 11:58:13 -0400 | [diff] [blame] | 159 | - project: |
Lott, Christopher (cl778h) | c8e8ea9 | 2020-03-05 08:40:19 -0500 | [diff] [blame] | 160 | <<: *rmr_common |
| 161 | <<: *rmr_py_common |
| 162 | name: ric-plt-lib-rmr-py-release |
Lott, Christopher (cl778h) | bbebd0f | 2019-10-01 11:58:13 -0400 | [diff] [blame] | 163 | jobs: |
Lott, Christopher (cl778h) | 946a3ac | 2019-10-29 16:40:47 -0400 | [diff] [blame] | 164 | - '{project-name}-gerrit-pypi-release-jobs' |
Lott, Christopher (cl778h) | 601a6cc | 2019-10-15 15:43:14 -0400 | [diff] [blame] | 165 | |
Lott, Christopher (cl778h) | c8e8ea9 | 2020-03-05 08:40:19 -0500 | [diff] [blame] | 166 | # analyze Py code and test coverage |
Lott, Christopher (cl778h) | 601a6cc | 2019-10-15 15:43:14 -0400 | [diff] [blame] | 167 | - project: |
Lott, Christopher (cl778h) | c8e8ea9 | 2020-03-05 08:40:19 -0500 | [diff] [blame] | 168 | <<: *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) | 601a6cc | 2019-10-15 15:43:14 -0400 | [diff] [blame] | 181 | jobs: |
Lott, Christopher (cl778h) | c8e8ea9 | 2020-03-05 08:40:19 -0500 | [diff] [blame] | 182 | - gerrit-tox-sonarqube |