Skip to content
This repository has been archived by the owner on Aug 13, 2024. It is now read-only.

Commit

Permalink
#9: Support builds on linux build images
Browse files Browse the repository at this point in the history
  • Loading branch information
laingsimon committed Mar 2, 2021
1 parent 8afda6c commit d2afd46
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ pull_requests:
do_not_increment_build_number: true
skip_tags: true
image: Visual Studio 2019
#image: Ubuntu2004 #Sql server (2017) is uncontactable with the connectionstring below (it works on other build environments), issue raised: https://github.com/appveyor/website/issues/786
configuration: Release
shallow_clone: true
dotnet_csproj:
Expand Down
2 changes: 1 addition & 1 deletion vcdb.IntegrationTests/Execution/Vcdb.cs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ private Options GetOptions(Scenario scenario, ScenarioSettings settings, string
var options = new Options
{
WorkingDirectory = workingDirectory,
AssemblySearchPaths = new[] { Path.GetFullPath(Path.Combine(typeof(Vcdb).Assembly.Location, $@"..\..\..\..\..\vcdb\bin\{BuildConfiguration.Current}\netcoreapp3.1")) },
AssemblySearchPaths = new[] { Path.GetFullPath(Path.Combine(typeof(Vcdb).Assembly.Location, "..", "..", "..", "..", "..", "vcdb", "bin", BuildConfiguration.Current, "netcoreapp3.1")) },
InputFile = settings.Mode == ExecutionMode.Deploy
? GetInputFileName(scenario)
: null
Expand Down
2 changes: 1 addition & 1 deletion vcdb.IntegrationTests/IntegrationTestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ private IntegrationTestOptions GetOptions(string scenarioName)
ConnectionString = EnvironmentVariable.Get<string>($"Vcdb_{databaseProduct.Name}_ConnectionString") ?? databaseProduct.FallbackConnectionString,
ScenarioName = scenarioName,
MaxConcurrency = 10,
ScenariosPath = Path.GetFullPath("..\\..\\..\\..\\TestScenarios"),
ScenariosPath = Path.Combine("..", "..", "..", "..", "TestScenarios"),
MinLogLevel = LogLevel.Information,
UseLocalDatabase = EnvironmentVariable.Get<bool?>($"Vcdb_{databaseProduct.Name}_UseLocalDatabase") ?? EnvironmentVariable.Get<bool?>($"Vcdb_UseLocalDatabase") ?? false,
DatabaseProduct = databaseProduct
Expand Down
2 changes: 1 addition & 1 deletion vcdb.IntegrationTests/IntegrationTestScenarios.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ protected IntegrationTestScenarios(string mode)

private IEnumerable<IntegrationTestScenario> GetScenarioNames()
{
var testScenarios = Path.GetFullPath("..\\..\\..\\..\\TestScenarios");
var testScenarios = Path.GetFullPath(Path.Combine("..", "..", "..", "..", "TestScenarios"));
var filter = new ScenarioFilter(DatabaseProduct);

foreach (var directory in Directory.GetDirectories(testScenarios))
Expand Down

0 comments on commit d2afd46

Please sign in to comment.