Skip to content

Commit 32070ce

Browse files
committed
Test setting connection string separately
1 parent 79a50fa commit 32070ce

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.travis.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ services:
77
- postgresql
88
- docker
99
env:
10-
- DB=SqlServer2008 CONNECTION_STRING="Server=localhost;initial catalog=nhibernate;User Id=sa;Password=P@ssw0rd;"
11-
- DB=MySQL CONNECTION_STRING="Server=127.0.0.1;Uid=root;Database=nhibernate;Old Guids=True;"
12-
- DB=PostgreSQL CONNECTION_STRING="Host=localhost;Port=5432;Username=postgres;Database=nhibernate;Enlist=true;"
10+
- DB=SqlServer2008
11+
- DB=MySQL
12+
- DB=PostgreSQL
1313
matrix:
1414
allow_failures:
1515
- env: DB=MySQL
@@ -19,8 +19,8 @@ before_install:
1919
- sudo apt-get update -qq
2020
- sudo apt-get install -y powershell
2121
before_script:
22-
- sh -c "if [ '$DB' = 'PostgreSQL' ]; then psql -c 'CREATE DATABASE nhibernate;' -U postgres; fi"
23-
- sh -c "if [ '$DB' = 'MySQL' ]; then mysql -e 'CREATE DATABASE IF NOT EXISTS nhibernate;'; fi"
24-
- sh -c "if [ '$DB' = 'SqlServer2008' ]; then docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=P@ssw0rd' -e 'MSSQL_PID=Express' -p 1433:1433 -d --name sqlexpress microsoft/mssql-server-linux:latest; fi"
22+
- sh -c "if [ '$DB' = 'PostgreSQL' ]; then export CONNECTION_STRING='Host=localhost;Port=5432;Username=postgres;Database=nhibernate;Enlist=true;'; psql -c 'CREATE DATABASE nhibernate;' -U postgres; fi"
23+
- sh -c "if [ '$DB' = 'MySQL' ]; then export CONNECTION_STRING='Server=127.0.0.1;Uid=root;Database=nhibernate;Old Guids=True;'; mysql -e 'CREATE DATABASE IF NOT EXISTS nhibernate;'; fi"
24+
- sh -c "if [ '$DB' = 'SqlServer2008' ]; then export CONNECTION_STRING='Server=localhost;initial catalog=nhibernate;User Id=sa;Password=P@ssw0rd;'; docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=P@ssw0rd' -e 'MSSQL_PID=Express' -p 1433:1433 -d --name sqlexpress microsoft/mssql-server-linux:latest; fi"
2525
script:
2626
- pwsh -noprofile -command "& ./build.ps1 -TaskList Set-Configuration,Test -properties @{\"Database\" = \"$DB\";\"ConnectionString\"=\"$CONNECTION_STRING\"}"

0 commit comments

Comments
 (0)