From f08b9cef00b13f9333ca4a203e6ef0f8732f3fb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Laban?= Date: Fri, 12 Jan 2018 10:49:21 -0500 Subject: [PATCH] Add appveyor configuration --- .appveyor.yml | 21 +++++++++++++++++++++ AppVeyor.yml | 21 +++++++++++++++++++++ build/build.cake | 11 ++++++++++- 3 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 .appveyor.yml create mode 100644 AppVeyor.yml diff --git a/.appveyor.yml b/.appveyor.yml new file mode 100644 index 0000000..c6e77f0 --- /dev/null +++ b/.appveyor.yml @@ -0,0 +1,21 @@ +image: Visual Studio 2017 + +branches: + only: + - master + +nuget: + disable_publish_on_pr: true + +skip_commits: + files: + - 'doc/**/*.*' + +init: +- ps: git config --global core.autocrlf true + +build_script: +- ps: .\build\build.ps1 -script build\build.cake + +artifacts: +- path: .\build\*.nupkg diff --git a/AppVeyor.yml b/AppVeyor.yml new file mode 100644 index 0000000..706cabb --- /dev/null +++ b/AppVeyor.yml @@ -0,0 +1,21 @@ +image: Visual Studio 2017 + +branches: + only: + - master + +nuget: + disable_publish_on_pr: true + +skip_commits: + files: + - 'doc/**/*.*' + +init: +- ps: git config --global core.autocrlf true + +build_script: +- ps: .\build\build.ps1 -Script="build\build.cake" + +artifacts: +- path: .\build\*.nupkg diff --git a/build/build.cake b/build/build.cake index 52859a3..3bba198 100644 --- a/build/build.cake +++ b/build/build.cake @@ -25,7 +25,7 @@ var signClientVersion = "0.9.0"; var baseDir = MakeAbsolute(Directory("../")).ToString(); var buildDir = baseDir + "/build"; -var Solution = baseDir + "/../src/Uno.SourceGenerator.sln"; +var Solution = baseDir + "/src/Uno.SourceGenerator.sln"; var toolsDir = buildDir + "/tools"; GitVersion versionInfo = null; @@ -95,6 +95,15 @@ Task("Build") MaxCpuCount = 1 } .SetConfiguration("Release") + .WithTarget("Restore"); + + MSBuild(Solution, buildSettings); + + buildSettings = new MSBuildSettings + { + MaxCpuCount = 1 + } + .SetConfiguration("Release") .WithTarget("Build"); MSBuild(Solution, buildSettings);