-
Notifications
You must be signed in to change notification settings - Fork 934
Upgrade MySql client and remove allowed failures on CI builds #2501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
73166e5
9681a20
75ed355
fc2ee47
1782aaa
03167e0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
dist: trusty | ||
os: linux | ||
dist: xenial | ||
language: csharp | ||
mono: none | ||
dotnet: 2.1.300 | ||
sudo: required | ||
services: | ||
- mysql | ||
- postgresql | ||
|
@@ -13,25 +13,22 @@ env: | |
- DB=Firebird | ||
- DB=MySQL CONNECTION_STRING="Server=127.0.0.1;Uid=root;Database=nhibernate;Old Guids=True;" | ||
- DB=SQLite | ||
matrix: | ||
allow_failures: | ||
- env: DB=MySQL CONNECTION_STRING="Server=127.0.0.1;Uid=root;Database=nhibernate;Old Guids=True;" | ||
before_install: | ||
- curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - | ||
- curl https://packages.microsoft.com/config/ubuntu/14.04/prod.list | sudo tee /etc/apt/sources.list.d/microsoft.list | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not needed |
||
- sudo apt-get update -qq | ||
- sudo apt-get install -y powershell | ||
- |- | ||
if [[ "$DB" == "MySQL" ]] | ||
then | ||
echo -e '[server]\nlower_case_table_names=1' | sudo tee -a /etc/mysql/my.cnf | ||
echo -e '[server]\nlower_case_table_names=1\n[mysqld]\ncharacter-set-server=utf8\ncollation-server=utf8_general_ci' | sudo tee -a /etc/mysql/my.cnf | ||
sudo service mysql restart | ||
fi | ||
- |- | ||
if [[ "$DB" == "Firebird" ]] | ||
then | ||
sudo apt-get install -y libicu-dev libtommath-dev curl | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why did you change it back to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The Firebird 3.x is built against However, it seems that 18.04 and above have Firebird 3.0 in the |
||
curl -L -O https://github.com/FirebirdSQL/firebird/releases/download/R3_0_5/Firebird-3.0.5.33220-0.amd64.tar.gz | ||
sudo apt-get install -y libtommath-dev | ||
# This would be required on bionic and above | ||
# sudo ln -s /usr/lib/x86_64-linux-gnu/libtommath.so.1 /usr/lib/x86_64-linux-gnu/libtommath.so.0 | ||
wget -q https://github.com/FirebirdSQL/firebird/releases/download/R3_0_5/Firebird-3.0.5.33220-0.amd64.tar.gz | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
tar xzvf Firebird-3.0.5.33220-0.amd64.tar.gz | ||
pushd Firebird-3.0.5.33220-0.amd64 | ||
sudo ./install.sh -silent | ||
|
@@ -41,7 +38,7 @@ before_install: | |
echo -e "nhibernate = /tmp/firebird/nhibernate.fdb" | sudo tee -a /opt/firebird/databases.conf | ||
echo -e "AuthServer = Srp\nAuthClient = Srp\nUserManager = Srp\nWireCrypt = Enabled" | sudo tee -a /opt/firebird/firebird.conf | ||
sudo /opt/firebird/bin/gsec -modify SYSDBA -pw masterkey -admin yes | ||
sudo service firebird restart | ||
sudo systemctl restart firebird-superserver | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The reason it was failing is because the service name on 3.0.x has changed. Probably 14.04 has some residue service definitions for |
||
fi | ||
before_script: | ||
- 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 | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This option is obsolete