aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.ci/templates/stages-uhd-pipeline.yml44
-rw-r--r--.ci/uhd-pipeline-pr.yml22
-rw-r--r--.ci/uhd-pipeline.yml51
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