From bcde3caabb6d5ce518b7d42212b470c06e50d1c8 Mon Sep 17 00:00:00 2001 From: Atif Aziz Date: Fri, 23 Feb 2018 13:34:33 +0100 Subject: [PATCH] Add CI build config --- Fizzler.Systems.HtmlAgilityPack.nuspec | 2 +- Fizzler.Tools.nuspec | 2 +- Fizzler.nuspec | 2 +- appveyor.yml | 37 ++++++++++++++++++++++++++ pack.cmd | 1 + 5 files changed, 41 insertions(+), 3 deletions(-) create mode 100644 appveyor.yml diff --git a/Fizzler.Systems.HtmlAgilityPack.nuspec b/Fizzler.Systems.HtmlAgilityPack.nuspec index b10f6c1..acabfd7 100644 --- a/Fizzler.Systems.HtmlAgilityPack.nuspec +++ b/Fizzler.Systems.HtmlAgilityPack.nuspec @@ -2,7 +2,7 @@ Fizzler.Systems.HtmlAgilityPack - 1.1.0 + 1.1.0$VersionSuffix$ Fizzler for HTML Agility Pack Atif Aziz, Colin Ramsay Atif Aziz diff --git a/Fizzler.Tools.nuspec b/Fizzler.Tools.nuspec index 7749357..b1e587b 100644 --- a/Fizzler.Tools.nuspec +++ b/Fizzler.Tools.nuspec @@ -2,7 +2,7 @@ Fizzler.Tools - 1.1.0 + 1.1.0$VersionSuffix$ Fizzler Tools Atif Aziz Atif Aziz diff --git a/Fizzler.nuspec b/Fizzler.nuspec index d8581f4..4d3f41a 100644 --- a/Fizzler.nuspec +++ b/Fizzler.nuspec @@ -2,7 +2,7 @@ Fizzler - 1.1.0 + 1.1.0$VersionSuffix$ Fizzler Atif Aziz, Colin Ramsay Atif Aziz diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..92c8d33 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,37 @@ +version: '{build}' +image: Visual Studio 2017 +branches: + except: + - /.+[\-.]wip$/ + - wip +pull_requests: + do_not_increment_build_number: true +skip_commits: + files: + - '*.md' + - '*.txt' + - '.editorconfig' +build_script: +- ps: >- + $id = $env:APPVEYOR_REPO_COMMIT_TIMESTAMP -replace '([-:]|\.0+Z)', '' + + $id = $id.Substring(0, 13) + + .\pack.cmd ci-$id +artifacts: +- path: dist\*.nupkg +deploy: +- provider: NuGet + server: https://www.myget.org/F/raboof/api/v2/package + api_key: + secure: fhGwXyO35FSshRzs5GWmF1LJTrd1sIqmS/jNCSfO2LfOciuYAKiXuFMYZFGiTAl+ + symbol_server: https://www.myget.org/F/raboof/symbols/api/v2/package + on: + branch: master +notifications: +- provider: Email + to: + - raboof-ci@googlegroups.com + on_build_success: true + on_build_failure: true + on_build_status_changed: false diff --git a/pack.cmd b/pack.cmd index 079016c..878a711 100644 --- a/pack.cmd +++ b/pack.cmd @@ -9,6 +9,7 @@ goto :EOF if not exist dist md dist if not %errorlevel%==0 exit /b %errorlevel% set nupack=.nuget\NuGet pack -OutputDirectory dist +if not "%1"=="" set nupack=%nupack% -Properties VersionSuffix=-%1 call build /v:m ^ && %nupack% -Symbols Fizzler.nuspec ^ && %nupack% -Symbols Fizzler.Systems.HtmlAgilityPack.nuspec ^