forked from git-tfs/git-tfs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappveyor.yml
31 lines (31 loc) · 1.47 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.1.{build}
platform: x86
clone_folder: c:\gittfs
clone_depth: 1
# build cache to preserve files/folders between builds
cache:
- packages -> paket.lock # preserve "packages" directory in the root of build folder but will reset it if `paket.lock` is modified
init: []
install:
- choco install tfs2010objectmodel -y
before_build:
- ps: |
.\paket.exe restore
$env:Config = "Release"
build_script:
- msbuild GitTfs.sln /t:GitTfs_Vs2010 /t:GitTfs_Vs2012 /t:GitTfs_Vs2013 /t:GitTfs_Vs2015 /t:GitTfsTest /verbosity:minimal /p:Configuration=Release /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /nologo /p:BuildInParallel=true /m:4
after_build:
- ps: |
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"
Push-AppveyorArtifact $zipFile
git config --global user.name "For gittfs test"
git config --global user.email [email protected]
test:
assemblies: '**\GitTfsTest.dll'
after_test:
- ps: |
& ".\FunctionalTesting\smoke_tests.ps1" "$Env:APPVEYOR_BUILD_FOLDER\GitTfs\bin\$env:Config"
Get-ChildItem .\GitTfs.Setup\GitTfs-*.msi | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }