From b0c3b5e2edccd3f0adeb7ad3ab1b235245c07151 Mon Sep 17 00:00:00 2001 From: Austin Winstanley Date: Fri, 28 Apr 2017 17:48:50 -0500 Subject: [PATCH] added AppVeyor CI for Windows builds --- README.md | 20 ++++++++++++-------- appveyor.yml | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+), 8 deletions(-) create mode 100644 appveyor.yml diff --git a/README.md b/README.md index 239b6be..6c044a0 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,17 @@ # Hangfire RavenDB -[![Build Status](https://travis-ci.org/RefreshingIO/hangfire-ravendb.svg?branch=master)](https://travis-ci.org/RefreshingIO/hangfire-ravendb) +## Build Status + +`Platform` | `Master` +--- | --- +**Windows** | [![AppVeyor CI status](https://ci.appveyor.com/api/projects/status/5juo1c8p20fnbuwx?svg=true)](https://ci.appveyor.com/project/AustinWinstanley/dewey) +**Linux / OS X** | [![Travis CI Build Status](https://travis-ci.org/RefreshingIO/hangfire-ravendb.svg?branch=master)](https://travis-ci.org/RefreshingIO/hangfire-ravendb) + +## Overview RavenDB job storage for Hangfire -Usage --------- +## Usage This is how you connect to a ravendb server (local or remote) ```csharp @@ -40,7 +46,7 @@ Recurring jobs were never been simpler, just call the following method to perfor RecurringJob.AddOrUpdate(() => Console.WriteLine("Transparent!"), Cron.Daily); ``` -**Continuations** +## Continuations Continuations allow you to define complex workflows by chaining multiple background jobs together. @@ -49,8 +55,7 @@ var id = BackgroundJob.Enqueue(() => Console.WriteLine("Hello, ")); BackgroundJob.ContinueWith(id, () => Console.WriteLine("world!")); ``` -License --------- +## License Copyright © 2013-2014 Sergey Odinokov. @@ -67,7 +72,6 @@ GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this program. If not, see [http://www.gnu.org/licenses/](http://www.gnu.org/licenses). -Known Bugs ----------- +## Known Bugs Hangfire.Tests requires RavenDB.Client which requires .Net 4.5. Until RavenDB 4.0 is released, Hangfire.Tests cannot be included and run. diff --git a/appveyor.yml b/appveyor.yml new file mode 100644 index 0000000..91a1d21 --- /dev/null +++ b/appveyor.yml @@ -0,0 +1,33 @@ +version: 1.0.{build} + +# branches to build +branches: + # whitelist + only: + - master + - production + + # blacklist + except: + - gh-pages + +# build configuration +configuration: +- Debug +- Release + +# build platform +platform: Any CPU + +# environment variables +environment: + # Don't report back to the mothership + DOTNET_CLI_TELEMETRY_OPTOUT: 1 + +# scripts to run before build +before_build: +- cmd: appveyor-retry dotnet restore -v Minimal + +# run dotnet cli instead of msbuild +build_script: +- dotnet build \ No newline at end of file