Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 17 additions & 11 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,39 @@
# version is set in tools\appveyor.psm1 - Invoke-AppVeyorInstall

image: Visual Studio 2017
environment:
POWERSHELL_TELEMETRY_OPTOUT: 1
# Avoid expensive initialization of dotnet cli, see: http://donovanbrown.com/post/Stop-wasting-time-during-NET-Core-builds
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
Purpose: BuildingAndPackaging
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
Purpose: BuildingAndTesting

# Stop all jobs in the matrix if any one them fail
matrix:
fast_finish: true

# cache version - netcoreapp.2.1-sdk.2.1.300
cache:
- '%LocalAppData%\Microsoft\dotnet -> appveyor.yml'
- '%HOMEDRIVE%%HOMEPATH%\.nuget\packages -> appveyor.yml'

nuget:
project_feed: true

environment:
POWERSHELL_TELEMETRY_OPTOUT: 1

install:
- git submodule update --init
- ps: Import-Module .\tools\Appveyor.psm1
- ps: Invoke-AppveyorInstall

build_script:
- ps: Invoke-AppveyorBuild
- ps: if ($env:Purpose -eq 'BuildingAndTesting'){ Invoke-AppveyorBuild }

test_script:
- ps: Invoke-AppveyorTest
- ps: if ($env:Purpose -eq 'BuildingAndTesting'){ Invoke-AppveyorTest }

after_test:
- ps: Invoke-AppVeyorAfterTest
- ps: if ($env:Purpose -eq 'BuildingAndTesting'){ Invoke-AppVeyorAfterTest }

# Run the finish command and delete files which should not be in the cache
on_finish:
- ps: Invoke-AppveyorFinish
- ps: Invoke-AppVeyorCleanCache
- ps: if ($env:Purpose -eq 'BuildingAndPackaging'){ Invoke-AppveyorFinish }
6 changes: 0 additions & 6 deletions tools/appveyor.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -551,9 +551,3 @@ function Invoke-AppveyorFinish
throw $_
}
}

# Clean the Cache of files which should not be cached
function Invoke-AppVeyorCleanCache
{
Remove-Item $env:LocalAppData\Microsoft\dotnet\optimizationdata -Recurse -force
}