aboutsummaryrefslogtreecommitdiffstats
path: root/.ci
diff options
context:
space:
mode:
authorSteven Koo <steven.koo@ni.com>2022-02-08 11:19:46 -0600
committerAaron Rossetto <aaron.rossetto@ni.com>2022-02-11 07:55:26 -0600
commitdc96d6507e1fdd1b13a21301ef37aa6838ed793d (patch)
tree493774b011d8c6685c5cb1ab4ebe2f0272f6fc8b /.ci
parent0866a4f2c24df37f1be74e4e27cda582ddcd3b10 (diff)
downloaduhd-dc96d6507e1fdd1b13a21301ef37aa6838ed793d.tar.gz
uhd-dc96d6507e1fdd1b13a21301ef37aa6838ed793d.tar.bz2
uhd-dc96d6507e1fdd1b13a21301ef37aa6838ed793d.zip
ci: Propagate downloader errors and lower timeout
This change enables download / network failures to propagate up and fail the job for Windows builds. It also reduces the job timeout in case the network hangs. Signed-off-by: Steven Koo <steven.koo@ni.com>
Diffstat (limited to '.ci')
-rw-r--r--.ci/templates/steps-build-uhd-msbuild.yml9
1 files changed, 8 insertions, 1 deletions
diff --git a/.ci/templates/steps-build-uhd-msbuild.yml b/.ci/templates/steps-build-uhd-msbuild.yml
index 31bb1dfaa..1e030e115 100644
--- a/.ci/templates/steps-build-uhd-msbuild.yml
+++ b/.ci/templates/steps-build-uhd-msbuild.yml
@@ -24,9 +24,14 @@ steps:
-DCMAKE_TOOLCHAIN_FILE=%VCPKG_INSTALL_DIR%/scripts/buildsystems/vcpkg.cmake
mkdir ${{ parameters.uhdImageDir }}
python ${{ parameters.uhdBuildDir }}/utils/uhd_images_downloader.py -i ${{ parameters.uhdImageDir }}
+ displayName: Download uhd-images
+ timeoutInMinutes: 30
+
+- script: |
cd $(Pipeline.Workspace)
rmdir ${{ parameters.uhdBuildDir }} /s /q
- displayName: Download uhd-images
+ displayName: Clean build directory
+
- script: |
mkdir ${{ parameters.uhdBuildDir }}
cd ${{ parameters.uhdBuildDir }}
@@ -44,11 +49,13 @@ steps:
%UHD_CI_CMAKE_OPTIONS% ^
-G "$(cmakeCompiler)" -A $(cmakeArch)
displayName: cmake msbuild UHD
+
- script: |
cd ${{ parameters.uhdBuildDir }}
call "C:\Program Files (x86)\Microsoft Visual Studio\$(vsYear)\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" $(vsArch)
msbuild.exe ALL_BUILD.vcxproj /p:configuration=release
displayName: msbuild UHD
+
- script: |
cd ${{ parameters.uhdBuildDir }}
ctest --no-compress-output --output-on-failure -T test