summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2018-08-26 17:27:54 +0100
committerEdward Thomson <ethomson@edwardthomson.com>2018-09-06 11:18:59 +0100
commit306875bc1c0c4cf82a4feb9436d161750c3f0aad (patch)
tree3b712674d6178686f84c6883788e115dc84c10fb
parentf3f2c45ee6d8f46692ebcc71f2ee688868629830 (diff)
downloadlibgit2-306875bc1c0c4cf82a4feb9436d161750c3f0aad.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.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/.vsts-ci.yml b/.vsts-ci.yml
index c9a8c75a5..63db6278a 100644
--- a/.vsts-ci.yml
+++ b/.vsts-ci.yml
@@ -169,12 +169,15 @@ jobs:
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
@@ -192,10 +195,12 @@ jobs:
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)'
- task: PublishTestResults@2
displayName: Publish Test Results
condition: succeededOrFailed()
@@ -210,10 +215,12 @@ jobs:
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)'
- task: PublishTestResults@2
displayName: Publish Test Results
condition: succeededOrFailed()
@@ -228,16 +235,19 @@ jobs:
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)'
- task: PublishTestResults@2
displayName: Publish Test Results
condition: succeededOrFailed()
@@ -252,16 +262,19 @@ jobs:
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)'
- task: PublishTestResults@2
displayName: Publish Test Results
condition: succeededOrFailed()