parameters: - name: uhdSrcDir type: string - name: uhdBuildDir type: string - name: uhdAllowWarnings type: boolean default: false - name: uhdCxxFlags type: string default: "" steps: - script: | mkdir -p ${{ parameters.uhdBuildDir }} cd ${{ parameters.uhdBuildDir }} if [[ "${{ parameters.uhdAllowWarnings }}" = "False" ]]; then echo "Warnings not allowed for this build." export CXXFLAGS="-Werror -Wno-error=maybe-uninitialized $CXXFLAGS" fi export CXXFLAGS="${{ parameters.uhdCxxFlags }} $CXXFLAGS" cmake -G Ninja ${{ parameters.uhdSrcDir }}/host displayName: cmake ninja UHD - script: | cd ${{ parameters.uhdBuildDir }} ninja displayName: ninja UHD - script: | cd ${{ parameters.uhdBuildDir }} ctest --no-compress-output --output-on-failure -T test continueOnError: true displayName: ctest ninja UHD