forked from rsdn/CodeJam
-
Notifications
You must be signed in to change notification settings - Fork 1
/
appveyor.yml
66 lines (54 loc) · 2.33 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
version: 1.0.{build}
configuration: Release
image: Visual Studio 2017
environment:
packageVersion: 1.3.0
cache:
- packages -> **\packages.config
init:
- cmd: git config --global core.autocrlf true
- ps: $env:buildVersion = "$env:packageVersion.$env:appveyor_build_number"
- ps: $env:nugetVersion = "$env:packageVersion-alpha$env:appveyor_build_number"
- ps: Update-AppveyorBuild -Version $env:buildVersion
assembly_info:
patch: true
file: '**\AssemblyInfo.*'
assembly_version: '$(buildVersion)'
assembly_file_version: '$(buildVersion)'
assembly_informational_version: '$(nugetVersion)'
nuget:
account_feed: false
project_feed: false
before_build:
- cmd: nuget restore CodeJam.sln
build:
project: CodeJam.sln
publish_nuget: false
verbosity: minimal
after_build:
- cmd: cd Main\src
- cmd: Compile.cmd
- cmd: cd ..\..
- cmd: cd Blocks\src
- cmd: Compile.cmd
- cmd: cd ..\..
- ps: $mainVer = (Get-Content Main\nuget\CodeJam.Main.nuspec).package.metadata.version
- ps: "$mainVer"
#- ps: nuget pack Main\nuget\CodeJam.Main.nuspec -version "$env:nugetVersion" # done via Compile.cmd
- ps: nuget pack Blocks\nuget\CodeJam.Blocks.nuspec -version "$env:nugetVersion"
- ps: nuget pack Experimental\nuget\CodeJam.Experimental.nuspec -version "$env:nugetVersion"
- ps: nuget pack PerfTests\nuget\CodeJam.PerfTests.Core.nuspec -version "$env:nugetVersion"
- ps: nuget pack PerfTests\nuget\CodeJam.PerfTests.NUnit.nuspec -version "$env:nugetVersion"
- ps: nuget pack PerfTests\nuget\CodeJam.PerfTests.xUnit.nuspec -version "$env:nugetVersion"
- ps: nuget pack PerfTests\nuget\CodeJam.PerfTests.MSTest.nuspec -version "$env:nugetVersion"
- ps: Push-AppveyorArtifact CodeJam.$env:nugetVersion.nupkg
- ps: Push-AppveyorArtifact CodeJam.Blocks.$env:nugetVersion.nupkg
- ps: Push-AppveyorArtifact CodeJam.Experimental.$env:nugetVersion.nupkg
- ps: Push-AppveyorArtifact CodeJam.PerfTests.Core.$env:nugetVersion.nupkg
- ps: Push-AppveyorArtifact CodeJam.PerfTests.NUnit.$env:nugetVersion.nupkg
- ps: Push-AppveyorArtifact CodeJam.PerfTests.xUnit.$env:nugetVersion.nupkg
- ps: Push-AppveyorArtifact CodeJam.PerfTests.MSTest.$env:nugetVersion.nupkg
# artifacts for perftests
on_finish:
# - ps: Get-ChildItem *.csv -r | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }
- ps: Get-ChildItem *.PerfTests.log -r | % { Push-AppveyorArtifact $_.FullName -FileName $_.Name }