diff options
author | Steven Koo <steven.koo@ni.com> | 2021-07-13 11:37:14 -0500 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2021-07-14 16:20:58 -0500 |
commit | eaea2e2da4cd64c8e01d949349f49e12b4d61a9d (patch) | |
tree | a83a85c9669f8fbf4d4ee1d8648ad9c61be8911e /.ci | |
parent | 349da6e2f675bdf61d70aa4ec209b73836cc8129 (diff) | |
download | uhd-eaea2e2da4cd64c8e01d949349f49e12b4d61a9d.tar.gz uhd-eaea2e2da4cd64c8e01d949349f49e12b4d61a9d.tar.bz2 uhd-eaea2e2da4cd64c8e01d949349f49e12b4d61a9d.zip |
ci: Split CI and PR pipelines for mono pipeline
Signed-off-by: Steven Koo <steven.koo@ni.com>
Diffstat (limited to '.ci')
-rw-r--r-- | .ci/templates/stages-uhd-pipeline.yml | 44 | ||||
-rw-r--r-- | .ci/uhd-pipeline-pr.yml | 22 | ||||
-rw-r--r-- | .ci/uhd-pipeline.yml | 51 |
3 files changed, 70 insertions, 47 deletions
diff --git a/.ci/templates/stages-uhd-pipeline.yml b/.ci/templates/stages-uhd-pipeline.yml new file mode 100644 index 000000000..99c607e03 --- /dev/null +++ b/.ci/templates/stages-uhd-pipeline.yml @@ -0,0 +1,44 @@ +# +# Copyright 2021 Ettus Research, a National Instruments Brand +# +# SPDX-License-Identifier: LGPL-3.0-or-later +# + +variables: +- template: ../uhd-pipeline-vars.yml + +resources: + pipelines: + - pipeline: uhd_build_docker_container + source: 'uhddev Build Docker Containers' + branch: master +stages: +- stage: build_uhd_stage + displayName: Build UHD + jobs: + - template: job-get-latest-uhd-docker.yml + + - template: job-uhd-build-src.yml + parameters: + toolset: make + - template: job-uhd-build-src.yml + parameters: + toolset: make_trace + - template: job-uhd-build-src.yml + parameters: + toolset: ninja + - template: job-uhd-build-src.yml + parameters: + toolset: msbuild + - template: job-uhd-build-src.yml + parameters: + toolset: ubuntu_deb + +- stage: test_uhd_stage + displayName: Test UHD + dependsOn: build_uhd_stage + jobs: + - template: job-uhd-devtest-rhombus.yml + parameters: + testOS: ubuntu2004 + uhdSrcDir: $(Build.SourcesDirectory) diff --git a/.ci/uhd-pipeline-pr.yml b/.ci/uhd-pipeline-pr.yml new file mode 100644 index 000000000..08a3c3212 --- /dev/null +++ b/.ci/uhd-pipeline-pr.yml @@ -0,0 +1,22 @@ +# +# Copyright 2021 Ettus Research, a National Instruments Brand +# +# SPDX-License-Identifier: LGPL-3.0-or-later +# + +trigger: none + +pr: + branches: + include: + - master + paths: + include: + - host + - .ci + - images/manifest.txt + exclude: + - .ci/docker + +extends: + template: templates/stages-uhd-pipeline.yml diff --git a/.ci/uhd-pipeline.yml b/.ci/uhd-pipeline.yml index 184593c06..7fc1b45dd 100644 --- a/.ci/uhd-pipeline.yml +++ b/.ci/uhd-pipeline.yml @@ -11,55 +11,12 @@ trigger: paths: include: - host - - .ci/ + - .ci - images/manifest.txt exclude: - .ci/docker -pr: - branches: - include: - - master - paths: - include: - - host - - .ci/uhd-pipeline.yml - - images/manifest.txt - -variables: -- template: uhd-pipeline-vars.yml - -resources: - pipelines: - - pipeline: uhd_build_docker_container - source: 'uhddev Build Docker Containers' - branch: master -stages: -- stage: build_uhd_stage - displayName: Build UHD - jobs: - - template: templates/job-get-latest-uhd-docker.yml - - template: templates/job-uhd-build-src.yml - parameters: - toolset: make - - template: templates/job-uhd-build-src.yml - parameters: - toolset: make_trace - - template: templates/job-uhd-build-src.yml - parameters: - toolset: ninja - - template: templates/job-uhd-build-src.yml - parameters: - toolset: msbuild - - template: templates/job-uhd-build-src.yml - parameters: - toolset: ubuntu_deb +pr: none -- stage: test_uhd_stage - displayName: Test UHD - dependsOn: build_uhd_stage - jobs: - - template: templates/job-uhd-devtest-rhombus.yml - parameters: - testOS: ubuntu2004 - uhdSrcDir: $(Build.SourcesDirectory) +extends: + template: templates/stages-uhd-pipeline.yml |