Skip to content

Commit b77cb9f

Browse files
committed
Allow MySQL to fail
1 parent 32070ce commit b77cb9f

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.travis.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,17 @@ services:
77
- postgresql
88
- docker
99
env:
10-
- DB=SqlServer2008
11-
- DB=MySQL
12-
- DB=PostgreSQL
13-
matrix:
14-
allow_failures:
15-
- env: DB=MySQL
10+
- DB=SqlServer2008 CONNECTION_STRING="Server=localhost;initial catalog=nhibernate;User Id=sa;Password=P@ssw0rd;"
11+
- DB=PostgreSQL CONNECTION_STRING="Host=localhost;Port=5432;Username=postgres;Database=nhibernate;Enlist=true;"
12+
- DB=MySQL CONNECTION_STRING="Server=127.0.0.1;Uid=root;Database=nhibernate;Old Guids=True;" TRAVIS_ALLOW_FAILURE=true
1613
before_install:
1714
- curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
1815
- curl https://packages.microsoft.com/config/ubuntu/14.04/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list
1916
- sudo apt-get update -qq
2017
- sudo apt-get install -y powershell
2118
before_script:
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"
19+
- sh -c "if [ '$DB' = 'PostgreSQL' ]; then psql -c 'CREATE DATABASE nhibernate;' -U postgres; fi"
20+
- sh -c "if [ '$DB' = 'MySQL' ]; then mysql -e 'CREATE DATABASE IF NOT EXISTS nhibernate;'; fi"
21+
- 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"
2522
script:
2623
- pwsh -noprofile -command "& ./build.ps1 -TaskList Set-Configuration,Test -properties @{\"Database\" = \"$DB\";\"ConnectionString\"=\"$CONNECTION_STRING\"}"

0 commit comments

Comments
 (0)