Update CIs

This commit is contained in:
JustArchi 2017-10-23 12:46:47 +02:00
parent 3536826820
commit 38e4d1f8c3
2 changed files with 5 additions and 20 deletions

View file

@ -16,7 +16,7 @@ branches:
mono: none
# ASF requires .NET Core 2.0+
dotnet: 2.0.0
dotnet: 2.0.2
env:
global:

View file

@ -10,30 +10,11 @@ configuration: Release
platform: Any CPU
clone_depth: 10
environment:
DOTNET_CHANNEL: 2.0
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
RUNTIMES: generic win-x64 linux-x64 linux-arm osx-x64
matrix:
fast_finish: true
install:
- ps: >-
Set-StrictMode -Version Latest
$ErrorActionPreference = 'Stop'
$ProgressPreference = 'SilentlyContinue'
dotnet --info
$env:DOTNET_INSTALL_DIR = "$pwd\.dotnetcli"
New-Item '.\scripts\obtain' -ItemType 'directory' -Force
Invoke-WebRequest -Uri 'https://raw.githubusercontent.com/dotnet/cli/master/scripts/obtain/dotnet-install.ps1' -OutFile '.\scripts\obtain\dotnet-install.ps1'
.\scripts\obtain\dotnet-install.ps1 -Channel "$env:DOTNET_CHANNEL" -InstallDir "$env:DOTNET_INSTALL_DIR"
before_build:
- ps: >-
Set-StrictMode -Version Latest
@ -42,6 +23,7 @@ before_build:
$ProgressPreference = 'SilentlyContinue'
dotnet --info
nuget sources update -Name nuget.org -Source https://api.nuget.org/v3/index.json
@ -55,6 +37,7 @@ build_script:
$ProgressPreference = 'SilentlyContinue'
dotnet build -c "$env:CONFIGURATION" -o 'out\source' --no-restore /nologo
test_script:
- ps: >-
@ -64,6 +47,7 @@ test_script:
$ProgressPreference = 'SilentlyContinue'
dotnet test ArchiSteamFarm.Tests -c "$env:CONFIGURATION" -o 'out\source' --no-build --no-restore
after_test:
- ps: >-
@ -73,6 +57,7 @@ after_test:
$ProgressPreference = 'SilentlyContinue'
$PublishBlock = {
param($RUNTIME)