From 8dc11fd891327ac1e483bb7274784194ff633ec2 Mon Sep 17 00:00:00 2001 From: Moritz Maxeiner <mm@ucw.sh> Date: Mon, 19 Nov 2018 14:29:35 +0100 Subject: [PATCH] Try to fail if any vcpkg install fails --- windows/Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/windows/Dockerfile b/windows/Dockerfile index 7cc1c7c..0cccc26 100644 --- a/windows/Dockerfile +++ b/windows/Dockerfile @@ -79,8 +79,11 @@ RUN cd $Env:VCPKG_DIR; \ boost-property-tree:$vcpkg_triplet \ jsoncpp:$vcpkg_triplet \ websocketpp:$vcpkg_triplet; \ + if (! $?) { exit 1 }; \ ./vcpkg install opencv[ffmpeg,ximea,cuda,opengl]:$vcpkg_triplet; \ + if (! $?) { exit 1 }; \ ./vcpkg install mxnet[cpp,opencv,cuda,cudnn]:$vcpkg_triplet; \ + if (! $?) { exit 1 }; \ Copy-Item ./downloads/tools/flang/5.0.0/Library/bin/flang.dll ./installed/$vcpkg_triplet/bin/; \ Copy-Item ./downloads/tools/flang/5.0.0/Library/bin/flangrti.dll ./installed/$vcpkg_triplet/bin/; \ Copy-Item ./downloads/tools/flang/5.0.0/Library/bin/libomp.dll ./installed/$vcpkg_triplet/bin/; \ @@ -100,8 +103,11 @@ RUN cd $Env:VCPKG_DIR; \ boost-property-tree:$vcpkg_triplet \ jsoncpp:$vcpkg_triplet \ websocketpp:$vcpkg_triplet; \ + if (! $?) { exit 1 }; \ ./vcpkg install opencv[ffmpeg,ximea,opengl]:$vcpkg_triplet; \ + if (! $?) { exit 1 }; \ ./vcpkg install mxnet[cpp,opencv]:$vcpkg_triplet; \ + if (! $?) { exit 1 }; \ Copy-Item ./downloads/tools/flang/5.0.0/Library/bin/flang.dll ./installed/$vcpkg_triplet/bin/; \ Copy-Item ./downloads/tools/flang/5.0.0/Library/bin/flangrti.dll ./installed/$vcpkg_triplet/bin/; \ Copy-Item ./downloads/tools/flang/5.0.0/Library/bin/libomp.dll ./installed/$vcpkg_triplet/bin/; \ -- GitLab