Update AppVeyor CI to Powershell Core (#767)

* Update AppVeyor CI to Powershell Core

* Fix Push-AppveyorArtifact
This commit is contained in:
Łukasz Domeradzki 2018-03-17 18:06:30 +01:00 committed by GitHub
parent 6a2c1ce01b
commit faeb7458bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,7 +18,7 @@ environment:
matrix:
fast_finish: true
before_build:
- ps: >-
- pwsh: >-
Set-StrictMode -Version Latest
$ErrorActionPreference = 'Stop'
@ -30,7 +30,7 @@ before_build:
dotnet restore
build_script:
- ps: >-
- pwsh: >-
Set-StrictMode -Version Latest
$ErrorActionPreference = 'Stop'
@ -40,7 +40,7 @@ build_script:
dotnet build -c "$env:CONFIGURATION" -o 'out\source' --no-restore /nologo
test_script:
- ps: >-
- pwsh: >-
Set-StrictMode -Version Latest
$ErrorActionPreference = 'Stop'
@ -50,7 +50,7 @@ test_script:
dotnet test ArchiSteamFarm.Tests -c "$env:CONFIGURATION" -o 'out\source' --no-build --no-restore
after_test:
- ps: >-
- pwsh: >-
Set-StrictMode -Version Latest
$ErrorActionPreference = 'Stop'
@ -99,7 +99,8 @@ after_test:
}
7z a -bd -tzip -mm=Deflate64 $zipArgs "ArchiSteamFarm\out\ASF-$Variant.zip" "$env:APPVEYOR_BUILD_FOLDER\ArchiSteamFarm\out\$Variant\*"
Push-AppveyorArtifact "ArchiSteamFarm\out\ASF-$Variant.zip" -FileName "ASF-$Variant.zip" -DeploymentName "ASF-$Variant.zip"
# TODO: Change me to Push-AppveyorArtifact once https://github.com/appveyor/ci/issues/2183 is fixed
appveyor PushArtifact "ArchiSteamFarm\out\ASF-$Variant.zip" -FileName "ASF-$Variant.zip" -DeploymentName "ASF-$Variant.zip"
}
foreach ($variant in $env:VARIANTS.Split([char[]] $null, [System.StringSplitOptions]::RemoveEmptyEntries)) {