You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- curl https://packages.microsoft.com/config/ubuntu/14.04/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list
19
16
- sudo apt-get update -qq
20
17
- sudo apt-get install -y powershell
21
18
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"
0 commit comments