Commit eda6a123 authored by Sean's avatar Sean 🎨

Add CI test to change db hostname

parent 5829e774
......@@ -9,8 +9,13 @@ open Helpers
[<Literal>]
let private DbVendor = Common.DatabaseProviderTypes.POSTGRESQL
#if CI
[<Literal>]
let private ConnString = "Host=postgres;Port=5432;Database=postgres;Username=test_app;Password=pass"
#else
[<Literal>]
let private ConnString = "Host=localhost;Port=5432;Database=postgres;Username=test_app;Password=pass"
#endif
[<Literal>]
let private Schema = "test"
......
......@@ -6,6 +6,10 @@
<RootNamespace>test_sql_provider</RootNamespace>
</PropertyGroup>
<PropertyGroup Condition="'$(CI)' == 'TRUE'">
<DefineConstants>CI</DefineConstants>
</PropertyGroup>
<Target Name="TypeProviderSetup" BeforeTargets="Build">
<Exec Command="./prebuild.sh" />
</Target>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment