8000 Appveyor: Don't hardcode the project path · GiTechLab/libgit2sharp@4d816d9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4d816d9

Browse files
committed
Appveyor: Don't hardcode the project path
1 parent e56c097 commit 4d816d9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

appveyor.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,23 +51,23 @@ cache:
5151
- packages
5252

5353
before_build:
54-
- nuget restore "C:\projects\libgit2sharp\LibGit2Sharp.sln"
54+
- nuget restore "%APPVEYOR_BUILD_FOLDER%\LibGit2Sharp.sln"
5555

5656
build_script:
57-
- msbuild "C:\projects\libgit2sharp\LibGit2Sharp.sln" /verbosity:normal /p:Configuration=Release /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /property:ExtraDefine="LEAKS_IDENTIFYING"
57+
- msbuild "%APPVEYOR_BUILD_FOLDER%\LibGit2Sharp.sln" /verbosity:normal /p:Configuration=Release /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /property:ExtraDefine="LEAKS_IDENTIFYING"
5858

5959
test_script:
60-
- '%xunit_runner% "C:\projects\libgit2sharp\LibGit2Sharp.Tests\bin\Release\LibGit2Sharp.Tests.dll" /appveyor'
60+
- '%xunit_runner% "%APPVEYOR_BUILD_FOLDER%\LibGit2Sharp.Tests\bin\Release\LibGit2Sharp.Tests.dll" /appveyor'
6161
- IF %ERRORLEVEL% NEQ 0 EXIT /B %ERRORLEVEL%
6262

6363
on_success:
6464
- ps: |
65-
& "C:\projects\libgit2sharp\nuget.package\BuildNugetPackage.ps1" "$env:APPVEYOR_REPO_COMMIT"
66-
Add-Type -Path "C:\projects\libgit2sharp\LibGit2Sharp\bin\Release\LibGit2Sharp.dll"
65+
& "$env:APPVEYOR_BUILD_FOLDER\nuget.package\BuildNugetPackage.ps1" "$env:APPVEYOR_REPO_COMMIT"
66+
Add-Type -Path "$env:APPVEYOR_BUILD_FOLDER\LibGit2Sharp\bin\Release\LibGit2Sharp.dll"
6767
Write-Host "LibGit2Sharp version = $([LibGit2Sharp.GlobalSettings]::Version)" -ForegroundColor "Magenta"
6868
If ($Env:SHOULD_PUBLISH_NUGET_ARTIFACT -eq $True)
6969
{
70-
Get-ChildItem "C:\projects\libgit2sharp\LibGit2sharp\*.nupkg" | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
70+
Get-ChildItem "$env:APPVEYOR_BUILD_FOLDER\LibGit2sharp\*.nupkg" | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
7171
}
7272
7373
notifications:

0 commit comments

Comments
 (0)
0