Skip to content

Commit ddb8b8f

Browse files
committed
Use a different env variable for appveyor api key
The actual appveyor build had the previous environment variable already defined, so use a different name for the one used in tests.
1 parent 090b2f4 commit ddb8b8f

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/Cake.AppVeyor.Tests/Keys.cs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
using System;
1+
using System;
22
using System.IO;
33

4-
namespace Cake.AppVeyor.Tests
5-
{
6-
public static class Keys
7-
{
8-
const string YOUR_APPVEYOR_API_TOKEN = "{APPVEYOR_APITOKEN}";
9-
10-
static string appVeyorApiToken;
11-
4+
namespace Cake.AppVeyor.Tests
5+
{
6+
public static class Keys
7+
{
8+
const string YOUR_APPVEYOR_API_TOKEN = "{APPVEYOR_APITOKEN}";
9+
10+
static string appVeyorApiToken;
11+
1212
public static string AppVeyorApiToken {
1313
get
1414
{
@@ -21,7 +21,7 @@ public static string AppVeyorApiToken {
2121

2222
// Next check for an environment variable
2323
if (string.IsNullOrEmpty(appVeyorApiToken))
24-
appVeyorApiToken = Environment.GetEnvironmentVariable("appveyor_api_token");
24+
appVeyorApiToken = Environment.GetEnvironmentVariable("test_appveyor_api_token");
2525

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

3131
return appVeyorApiToken;
3232
}
33-
}
34-
}
35-
}
36-
33+
}
34+
}
35+
}
36+

0 commit comments

Comments
 (0)