diff options
| author | Steven Koo <steven.koo@ni.com> | 2021-06-23 10:36:15 -0500 | 
|---|---|---|
| committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2021-06-24 07:30:08 -0500 | 
| commit | 0896071591ddf800a0e5a7de2cd7a124bbb441e9 (patch) | |
| tree | d66d372563a117ce6ec0a223615029ae6ddf1262 | |
| parent | abcaa3f6a983c832b2ff2873d30eebd3d35f3e9a (diff) | |
| download | uhd-0896071591ddf800a0e5a7de2cd7a124bbb441e9.tar.gz uhd-0896071591ddf800a0e5a7de2cd7a124bbb441e9.tar.bz2 uhd-0896071591ddf800a0e5a7de2cd7a124bbb441e9.zip | |
ci: Add trace builds to pipeline
Signed-off-by: Steven Koo <steven.koo@ni.com>
| -rw-r--r-- | .ci/templates/job-uhd-build-src.yml | 10 | ||||
| -rw-r--r-- | .ci/templates/steps-build-uhd-make.yml | 12 | ||||
| -rw-r--r-- | .ci/uhd-pipeline.yml | 3 | 
3 files changed, 23 insertions, 2 deletions
| diff --git a/.ci/templates/job-uhd-build-src.yml b/.ci/templates/job-uhd-build-src.yml index a3c63897a..a5909388a 100644 --- a/.ci/templates/job-uhd-build-src.yml +++ b/.ci/templates/job-uhd-build-src.yml @@ -3,6 +3,7 @@ parameters:    type: string    values:    - make +  - make_trace    - ninja    - msbuild    - ubuntu_deb @@ -34,7 +35,7 @@ jobs:    strategy:      ${{ if eq(parameters.toolset, 'msbuild') }}:        matrix: $[ variables.dockerImageMatrixWin ] -    ${{ if or(eq(parameters.toolset, 'make'), eq(parameters.toolset, 'ninja')) }}: +    ${{ if or(eq(parameters.toolset, 'make'), eq(parameters.toolset, 'make_trace'), eq(parameters.toolset, 'ninja')) }}:        matrix: $[ variables.dockerImageMatrixLin ]      ${{ if eq(parameters.toolset, 'ubuntu_deb') }}:        matrix: $[ variables.dockerImageMatrixUbuntuDeb ] @@ -56,6 +57,13 @@ jobs:          uhdSrcDir: $(Build.SourcesDirectory)          uhdBuildDir: $(Build.BinariesDirectory)/uhddev/build +  - ${{ if eq(parameters.toolset, 'make_trace') }}: +    - template: steps-build-uhd-make.yml +      parameters: +        uhdSrcDir: $(Build.SourcesDirectory) +        uhdBuildDir: $(Build.BinariesDirectory)/uhddev/build +        uhdEnableTraceLog: true +    - ${{ if eq(parameters.toolset, 'ninja') }}:      - template: steps-build-uhd-ninja.yml        parameters: diff --git a/.ci/templates/steps-build-uhd-make.yml b/.ci/templates/steps-build-uhd-make.yml index 22cb60cc9..a3c4c7eb5 100644 --- a/.ci/templates/steps-build-uhd-make.yml +++ b/.ci/templates/steps-build-uhd-make.yml @@ -3,13 +3,23 @@ parameters:    type: string  - name: uhdBuildDir    type: string +- name: uhdEnableTraceLog +  type: boolean +  default: false  steps:  - script: |      mkdir -p ${{ parameters.uhdBuildDir }}      cd ${{ parameters.uhdBuildDir }} -    cmake ${{ parameters.uhdSrcDir }}/host +    if [[ "${{ parameters.uhdEnableTraceLog }}" = "True" ]]; then +      echo "Enabling UHD Tracing" +      export UHD_CI_CMAKE_OPTIONS="-DUHD_LOG_MIN_LEVEL=trace $UHD_CI_CMAKE_OPTIONS" +    fi +    cmake \ +      $UHD_CI_CMAKE_OPTIONS \ +      ${{ parameters.uhdSrcDir }}/host    displayName: cmake make UHD +  - script: |      cd ${{ parameters.uhdBuildDir }}      make -j$(nproc) diff --git a/.ci/uhd-pipeline.yml b/.ci/uhd-pipeline.yml index 39df8e6df..16854ab9b 100644 --- a/.ci/uhd-pipeline.yml +++ b/.ci/uhd-pipeline.yml @@ -40,6 +40,9 @@ stages:        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: | 
