diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2018-08-26 17:27:54 +0100 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2018-09-20 11:30:48 +0100 |
commit | 9b122bfbf51d21683e2bc8042487818e715a707c (patch) | |
tree | ec2b76f05e6045dd99166bf15238b1937cb3c488 | |
parent | 7ae554fd7bf3c8edd97ee7478682cc64d5d17f2a (diff) | |
download | libgit2-9b122bfbf51d21683e2bc8042487818e715a707c.tar.gz |
ci: explicitly run in the build directory
Explicitly run from the build directory, not the source. (I was
mistaken about the default working directory for VSTS agents.)
-rw-r--r-- | .vsts-ci.yml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/.vsts-ci.yml b/.vsts-ci.yml index 36ce77760..2098deda7 100644 --- a/.vsts-ci.yml +++ b/.vsts-ci.yml @@ -75,12 +75,15 @@ phases: steps: - bash: . '$(Build.SourcesDirectory)/ci/setup-osx.sh' displayName: Setup + workingDirectory: '$(Build.BinariesDirectory)' - bash: . '$(Build.SourcesDirectory)/ci/build.sh' displayName: Build + workingDirectory: '$(Build.BinariesDirectory)' env: PKG_CONFIG_PATH: /usr/local/opt/openssl/lib/pkgconfig - bash: . '$(Build.SourcesDirectory)/ci/test.sh' displayName: Test + workingDirectory: '$(Build.BinariesDirectory)' env: TMPDIR: $(Agent.TempDirectory) LEAK_CHECK: leaks @@ -92,10 +95,12 @@ phases: steps: - powershell: . '$(Build.SourcesDirectory)\ci\build.ps1' displayName: Build + workingDirectory: '$(Build.BinariesDirectory)' env: CMAKE_OPTIONS: -DMSVC_CRTDBG=ON -G"Visual Studio 12 2013 Win64" - powershell: . '$(Build.SourcesDirectory)\ci\test.ps1' displayName: Test + workingDirectory: '$(Build.BinariesDirectory)' - phase: windows_vs_x86 displayName: 'Windows (Visual Studio; x86)' @@ -104,10 +109,12 @@ phases: steps: - powershell: . '$(Build.SourcesDirectory)\ci\build.ps1' displayName: Build + workingDirectory: '$(Build.BinariesDirectory)' env: CMAKE_OPTIONS: -DMSVC_CRTDBG=ON -G"Visual Studio 12 2013" - powershell: . '$(Build.SourcesDirectory)\ci\test.ps1' displayName: Test + workingDirectory: '$(Build.BinariesDirectory)' - phase: windows_mingw_amd64 displayName: 'Windows (MinGW; amd64)' @@ -116,16 +123,19 @@ phases: steps: - powershell: . '$(Build.SourcesDirectory)\ci\setup-mingw.ps1' displayName: Setup + workingDirectory: '$(Build.BinariesDirectory)' env: TEMP: $(Agent.TempDirectory) ARCH: amd64 - powershell: . '$(Build.SourcesDirectory)\ci\build.ps1' displayName: Build + workingDirectory: '$(Build.BinariesDirectory)' env: CMAKE_OPTIONS: -G"MinGW Makefiles" PATH: $(Agent.TempDirectory)\mingw64\bin;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\CMake\bin - powershell: . '$(Build.SourcesDirectory)\ci\test.ps1' displayName: Test + workingDirectory: '$(Build.BinariesDirectory)' - phase: windows_mingw_x86 displayName: 'Windows (MinGW; x86)' @@ -134,13 +144,16 @@ phases: steps: - powershell: . '$(Build.SourcesDirectory)\ci\setup-mingw.ps1' displayName: Setup + workingDirectory: '$(Build.BinariesDirectory)' env: TEMP: $(Agent.TempDirectory) ARCH: x86 - powershell: . '$(Build.SourcesDirectory)\ci\build.ps1' displayName: Build + workingDirectory: '$(Build.BinariesDirectory)' env: CMAKE_OPTIONS: -G"MinGW Makefiles" PATH: $(Agent.TempDirectory)\mingw32\bin;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\CMake\bin - powershell: . '$(Build.SourcesDirectory)\ci\test.ps1' displayName: Test + workingDirectory: '$(Build.BinariesDirectory)' |