From 1fc40cbd7506c1abe9517c8c178cdcabe1a57dd1 Mon Sep 17 00:00:00 2001 From: Kamran Ayub Date: Tue, 23 May 2017 17:58:41 -0500 Subject: [PATCH] Add build status, fix test support, add extra release note --- GiantBomb.Api.Tests/Support/Token.cs | 7 +++++-- GiantBomb.Api/readme.txt | 3 +++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/GiantBomb.Api.Tests/Support/Token.cs b/GiantBomb.Api.Tests/Support/Token.cs index 84c8712..1fd933d 100644 --- a/GiantBomb.Api.Tests/Support/Token.cs +++ b/GiantBomb.Api.Tests/Support/Token.cs @@ -8,7 +8,8 @@ namespace GiantBomb.Api.Tests.Support { public static class Token { - const string FilePath = @".\Support\api_token.private"; + // relative to bin/Configuration + const string FilePath = @"..\..\Support\api_token.private"; /// /// Gets the API token for tests. Located in api_token.private folder in same folder or GIANTBOMB_API_TOKEN environment variable (CI). @@ -16,7 +17,9 @@ public static class Token /// public static string GetToken() { - if (File.Exists(FilePath)) + string basePath = AppDomain.CurrentDomain.BaseDirectory; + + if (File.Exists(Path.Combine(basePath, FilePath))) { return File.ReadAllText(FilePath); } diff --git a/GiantBomb.Api/readme.txt b/GiantBomb.Api/readme.txt index 6a33ed1..6f9ada7 100644 --- a/GiantBomb.Api/readme.txt +++ b/GiantBomb.Api/readme.txt @@ -1,12 +1,15 @@ GiantBomb C# ------------ +[![Build status](https://ci.appveyor.com/api/projects/status/hh268dmpd08qfjqt?svg=true)](https://ci.appveyor.com/project/kamranayub/giantbomb-csharp) + ## 2.3.0 - **BUG:** Fixed deserialization exception for single resource errors (e.g. Object Not Found) - **BUG:** Fixed synchronous API to not deadlock - Removed fastJSON DLL since it wasn't *actually* being used - Upgrade to RestSharp 105.2.3 +- Added .NET 4.6 and 4.6.1 support ## 2.2.1