Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-activate tests #9

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
environment:
appveyor_api_token:
test_appveyor_api_token:
secure: vJntliZhY34wDY8ERUBFNtDYDykoBArjD23Hq3hfN+0=

#---------------------------------#
Expand Down
3 changes: 1 addition & 2 deletions setup.cake
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ BuildParameters.SetParameters(context: Context,
appVeyorAccountName: "cakecontrib",
shouldRunDotNetCorePack: true,
shouldRunDupFinder: false,
shouldRunInspectCode: false,
testFilePattern: "DO_NOT_RUN_TESTS");
shouldRunInspectCode: false);

BuildParameters.PrintParameters(Context);

Expand Down
28 changes: 14 additions & 14 deletions src/Cake.AppVeyor.Tests/Keys.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
using System;
using System;
using System.IO;

namespace Cake.AppVeyor.Tests
{
public static class Keys
{
const string YOUR_APPVEYOR_API_TOKEN = "{APPVEYOR_APITOKEN}";

static string appVeyorApiToken;

namespace Cake.AppVeyor.Tests
{
public static class Keys
{
const string YOUR_APPVEYOR_API_TOKEN = "{APPVEYOR_APITOKEN}";
static string appVeyorApiToken;
public static string AppVeyorApiToken {
get
{
Expand All @@ -21,7 +21,7 @@ public static string AppVeyorApiToken {

// Next check for an environment variable
if (string.IsNullOrEmpty(appVeyorApiToken))
appVeyorApiToken = Environment.GetEnvironmentVariable("appveyor_api_token");
appVeyorApiToken = Environment.GetEnvironmentVariable("test_appveyor_api_token");

// Finally use the const value
if (string.IsNullOrEmpty(appVeyorApiToken))
Expand All @@ -30,7 +30,7 @@ public static string AppVeyorApiToken {

return appVeyorApiToken;
}
}
}
}

}
}
}