From eaea2e2da4cd64c8e01d949349f49e12b4d61a9d Mon Sep 17 00:00:00 2001 From: Steven Koo Date: Tue, 13 Jul 2021 11:37:14 -0500 Subject: ci: Split CI and PR pipelines for mono pipeline Signed-off-by: Steven Koo --- .ci/templates/stages-uhd-pipeline.yml | 44 ++++++++++++++++++++++++++++++ .ci/uhd-pipeline-pr.yml | 22 +++++++++++++++ .ci/uhd-pipeline.yml | 51 +++-------------------------------- 3 files changed, 70 insertions(+), 47 deletions(-) create mode 100644 .ci/templates/stages-uhd-pipeline.yml create mode 100644 .ci/uhd-pipeline-pr.yml 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 -- cgit v1.2.3