forked from git-tfs/git-tfs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appveyor.yml
31 lines (31 loc) · 1.69 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#appveyor.yml reference: http://www.appveyor.com/docs/appveyor-yml
version: 0.25.0.{build}
platform: Any CPU
clone_folder: c:\gittfs
clone_depth: 1
# build cache to preserve files/folders between builds
cache:
- packages -> **\repositories.config # preserve "packages" directory in the root of build folder but will reset it if repositories.config is modified
init: []
install:
- choco install tfs2010objectmodel -y
before_build:
- ps: $env:Config = "Release"
build_script:
- msbuild GitTfs.sln /t:GitTfs_Vs2010 /t:GitTfs_Vs2012 /t:GitTfs_Vs2013 /t:GitTfs_Vs2015 /t:GitTfsTest /t:GitTfs_Setup /verbosity:minimal /p:Configuration=Release /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /nologo /p:BuildInParallel=true /m:4
after_build:
- ps: |
if ( ! (Test-Path -Path "$Env:APPVEYOR_BUILD_FOLDER\GitTfs\bin\$env:Config\NativeBinaries")) {
$libgit2Binaries=Get-ChildItem ".\packages\" -Filter "NativeBinaries" -Recurse | Select-Object -First 1 | % { $_.FullName }
Copy-Item $libgit2Binaries "$Env:APPVEYOR_BUILD_FOLDER\GitTfs\bin\$env:Config" -Recurse
}
Get-ChildItem .\packages -Recurse -Filter Microsoft.WITDataStore*.dll | Copy-Item -Destination "$Env:APPVEYOR_BUILD_FOLDER\GitTfs\bin\$env:Config\GitTfs.Vs2015\"
$zipFile= "git-tfs_$Env:APPVEYOR_REPO_COMMIT.zip"
7z a $zipFile "$Env:APPVEYOR_BUILD_FOLDER\GitTfs\bin\$env:Config\*" -xr!"*.pdb"
test:
assemblies: '**\GitTfsTest.dll'
after_test:
- ps: |
& ".\FunctionalTesting\smoke_tests.ps1" "$Env:APPVEYOR_BUILD_FOLDER\GitTfs\bin\$env:Config"
Push-AppveyorArtifact $zipFile
Get-ChildItem .\GitTfs.Setup\GitTfs-*.msi | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }