Skip to content

Commit

Permalink
Reduce ci time (#67)
Browse files Browse the repository at this point in the history
* Cache wix tools folder

* Try move installer building after tests

* Only build artifacts when a tag is created

* Try cache chocolatey deps

* Cache chocolatey binaries as well

* Cache nuget packages
  • Loading branch information
Lolle2000la authored Feb 28, 2020
1 parent adf62c4 commit 99dc1ee
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ configuration: Release

platform: Any CPU

cache:
- ImageSort.WindowsSetup\wix
- 'C:\ProgramData\chocolatey\bin -> appveyor.yml'
- 'C:\ProgramData\chocolatey\lib -> appveyor.yml'
- '%USERPROFILE%\.nuget\packages -> **\*.csproj'

install:
- choco install gitversion.portable -pre -y

Expand All @@ -17,11 +23,14 @@ build:

after_build:
- ps: >-
cd .\ImageSort.WindowsSetup\;
gitversion /updatewixversionfile;
MSBuild /p:Configuration=Release /p:Platform=x64 /p:OutputPath=..\artifacts\x64 /p:BuildProjectReferences=false;
MSBuild /p:Configuration=Release /p:Platform=x86 /p:OutputPath=..\artifacts\x86 /p:BuildProjectReferences=false;
cd ..;
if ($env:APPVEYOR_REPO_TAG -eq "true") {
cd .\ImageSort.WindowsSetup\;
gitversion /updatewixversionfile;
MSBuild /p:Configuration=Release /p:Platform=x64 /p:OutputPath=..\artifacts\x64 /p:BuildProjectReferences=false;
MSBuild /p:Configuration=Release /p:Platform=x86 /p:OutputPath=..\artifacts\x86 /p:BuildProjectReferences=false;
cd ..;
}
artifacts:
- path: '.\artifacts\**\*.msi'
Expand Down

0 comments on commit 99dc1ee

Please sign in to comment.