Skip to content

Commit 9614d2b

Browse files
committed
Updated the appveyor settings
1 parent 74322f1 commit 9614d2b

File tree

1 file changed

+12
-19
lines changed

1 file changed

+12
-19
lines changed

appveyor.yml

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
version: 4.0.{build}
2-
os: Visual Studio 2015
2+
os: Visual Studio 2017
33
clone_depth: 2
44
configuration: Release
55

66
pull_requests:
77
do_not_increment_build_number: true
8-
9-
#environment:
10-
# VERSION_SUFFIX: -beta
118

12-
init:
13-
- git config --global core.autocrlf true
9+
init:
10+
- git config --global core.autocrlf input
1411
- 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)"'
1614

1715
assembly_info:
1816
patch: true
@@ -22,26 +20,21 @@ assembly_info:
2220
assembly_informational_version: "{version}$(VERSION_SUFFIX) $(GIT_HASH)"
2321

2422
install:
25-
- ps: .\tools\DisplayEnvironmentInfo.ps1
23+
- ps: .\build\DisplayEnvironmentInfo.ps1
2624

2725
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 }
3629

3730
build_script:
38-
- ps: .\tools\Build.ps1
31+
- ps: .\build\Build.ps1
3932

4033
test_script:
41-
- dotnet test tests\Exceptionless.Tests\
34+
- dotnet test test\Exceptionless.Tests\
4235

4336
after_test:
44-
- ps: .\tools\Package.ps1
37+
- ps: .\build\Package.ps1
4538

4639
artifacts:
4740
- path: artifacts\*.nupkg

0 commit comments

Comments
 (0)