forked from git-tfs/git-tfs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappveyor.yml
More file actions
27 lines (27 loc) · 1.35 KB
/
appveyor.yml
File metadata and controls
27 lines (27 loc) · 1.35 KB
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
#appveyor.yml reference: http://www.appveyor.com/docs/appveyor-yml
version: 0.22.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
build_script:
- msbuild GitTfs.sln /t:GitTfs_Vs2010 /t:GitTfs_Vs2012 /t:GitTfs_Vs2013 /t:GitTfs_Vs2015 /t:GitTfsTest /verbosity:minimal /p:Configuration=Debug /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\Debug\NativeBinaries")) {
$libgit2Binaries=Get-ChildItem ".\packages\" -Filter "NativeBinaries" -Recurse | Select-Object -First 1 | % { $_.FullName }
Copy-Item $libgit2Binaries "$Env:APPVEYOR_BUILD_FOLDER\GitTfs\bin\Debug" -Recurse
}
$zipFile= "git-tfs_$Env:APPVEYOR_REPO_COMMIT.zip"
7z a $zipFile "$Env:APPVEYOR_BUILD_FOLDER\GitTfs\bin\Debug\*" -xr!"*.pdb" -xr!"Microsoft.*"
test:
assemblies: '**\GitTfsTest.dll'
after_test:
- ps: |
& ".\FunctionalTesting\smoke_tests.ps1" "$Env:APPVEYOR_BUILD_FOLDER\GitTfs\bin\Debug"
Push-AppveyorArtifact $zipFile