1
1
version : 4.0.{build}
2
- os : Visual Studio 2015
2
+ os : Visual Studio 2017
3
3
clone_depth : 2
4
4
configuration : Release
5
5
6
6
pull_requests :
7
7
do_not_increment_build_number : true
8
-
9
- # environment:
10
- # VERSION_SUFFIX: -beta
11
8
12
- init :
13
- - git config --global core.autocrlf true
9
+ init :
10
+ - git config --global core.autocrlf input
14
11
- ps : $env:GIT_HASH=$env:APPVEYOR_REPO_COMMIT.Substring(0, 10)
15
- - ps : If ("$env:APPVEYOR_REPO_BRANCH" -ne "master") { $env:VERSION_SUFFIX="-pre" }
12
+ - ps : If ("$env:APPVEYOR_REPO_TAG" -ne "true") { $env:VERSION_SUFFIX="pre" }
13
+ - ps : ' Write-Output "Version: $($env:APPVEYOR_BUILD_VERSION)-$($env:VERSION_SUFFIX)"'
16
14
17
15
assembly_info :
18
16
patch : true
@@ -22,26 +20,21 @@ assembly_info:
22
20
assembly_informational_version : " {version}$(VERSION_SUFFIX) $(GIT_HASH)"
23
21
24
22
install :
25
- - ps : .\tools \DisplayEnvironmentInfo.ps1
23
+ - ps : .\build \DisplayEnvironmentInfo.ps1
26
24
27
25
before_build :
28
- - ps : >-
29
- Get-ChildItem -Path .\ -Filter project.json -Recurse -Name |
30
- ForEach {
31
- $content = Get-Content "$_"
32
- $content = $content.Replace("99.99.99-dev", "$($env:APPVEYOR_BUILD_VERSION)$($env:VERSION_SUFFIX)")
33
- Set-Content "$_" $content -Encoding UTF8
34
- }
35
- - dotnet restore -v Minimal
26
+ - ps : .\build\Set-BuildVersion -Version $env:APPVEYOR_BUILD_VERSION -Suffix $env:VERSION_SUFFIX
27
+ - appveyor-retry dotnet restore -v Minimal
28
+ - ps : Get-ChildItem -Path .\src -Recurse -Include @("*.Signed", "*Portable") | ForEach-Object { & appveyor-retry dotnet restore $_ -v Minimal }
36
29
37
30
build_script :
38
- - ps : .\tools \Build.ps1
31
+ - ps : .\build \Build.ps1
39
32
40
33
test_script :
41
- - dotnet test tests \Exceptionless.Tests\
34
+ - dotnet test test \Exceptionless.Tests\
42
35
43
36
after_test :
44
- - ps : .\tools \Package.ps1
37
+ - ps : .\build \Package.ps1
45
38
46
39
artifacts :
47
40
- path : artifacts\*.nupkg
0 commit comments