diff --git a/appveyor.yml b/appveyor.yml index 2bd9696..ed9af43 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,5 +1,5 @@ environment: - appveyor_api_token: + test_appveyor_api_token: secure: vJntliZhY34wDY8ERUBFNtDYDykoBArjD23Hq3hfN+0= #---------------------------------# diff --git a/setup.cake b/setup.cake index 08be0cd..3347f0f 100644 --- a/setup.cake +++ b/setup.cake @@ -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); diff --git a/src/Cake.AppVeyor.Tests/Keys.cs b/src/Cake.AppVeyor.Tests/Keys.cs index 39ad8f8..ed4b2e7 100644 --- a/src/Cake.AppVeyor.Tests/Keys.cs +++ b/src/Cake.AppVeyor.Tests/Keys.cs @@ -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 { @@ -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)) @@ -30,7 +30,7 @@ public static string AppVeyorApiToken { return appVeyorApiToken; } - } - } -} - + } + } +} +