From e0171cc13a972f433f9e3660067b064f48f56cf7 Mon Sep 17 00:00:00 2001 From: Ulrich Huber Date: Wed, 12 Jun 2019 16:21:35 -0400 Subject: [PATCH] Set working directory manually for steps --- azure-pipelines.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 21297472..91177b79 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -32,12 +32,8 @@ steps: displayName: 'Install dependencies on Windows' # Switch to the build directory -- task: Bash@3 - inputs: - targetType: 'inline' - script: ' - mkdir build; - cd build' +- bash: | + mkdir build displayName: 'Switch to build directory' # Do the actual build @@ -45,11 +41,13 @@ steps: - bash: | cmake .. -DCMAKE_DEBUG_INCLUDES_LDFLAGS=ON -DENABLE_CPPUNIT=ON -DDEBUG_COMPILE=ON make -j `grep processor /proc/cpuinfo | tail -c 2` + workingDirectory: ./build condition: eq( variables['Agent.OS'], 'Linux' ) displayName: 'Build on Linux' # macOS - bash: | echo !!!TODO!!! + workingDirectory: ./build condition: eq( variables['Agent.OS'], 'Darwin' ) displayName: 'Build on macOS' # Windows @@ -58,6 +56,7 @@ steps: cmake .. make ../windows-setup/build-setup.sh + workingDirectory: ./build condition: eq( variables['Agent.OS'], 'Windows_NT' ) displayName: 'Build on Windows' @@ -65,15 +64,18 @@ steps: # Linux - bash: | ctest + workingDirectory: ./build condition: eq( variables['Agent.OS'], 'Linux' ) displayName: 'Run tests on Linux' # macOS - bash: | echo !!!TODO!!! + workingDirectory: ./build condition: eq( variables['Agent.OS'], 'Darwin' ) displayName: 'Run tests on macOS' # Windows - bash: | echo !!!TODO!!! + workingDirectory: ./build condition: eq( variables['Agent.OS'], 'Windows_NT' ) displayName: 'Run tests on Windows' \ No newline at end of file