Use a custom MariaDB user

This commit is contained in:
Jordan Brown
2020-06-30 04:02:29 -04:00
parent 9a765e4323
commit 54328407b7
+3 -1
View File
@@ -17,7 +17,7 @@ jobs:
- DMAPI=false
- CONFIG=Release
- TGS4_TEST_DATABASE_TYPE=MySql
- TGS4_TEST_CONNECTION_STRING="server=127.0.0.1;uid=root;pwd=;database=tgs_test"
- TGS4_TEST_CONNECTION_STRING="server=127.0.0.1;uid=testuser;pwd=password;database=tgs_test"
name: "MariaDB Integration Test"
language: csharp
mono: none
@@ -37,6 +37,7 @@ jobs:
- DockerBuild=false
- DMAPI=false
- CONFIG=Release
- MARIAFIX=true
- TGS4_TEST_DATABASE_TYPE=Sqlite
- TGS4_TEST_CONNECTION_STRING="Data Source=TravisTestDB.sqlite3;Mode=ReadWriteCreate"
name: "Sqlite Integration Test"
@@ -134,6 +135,7 @@ jobs:
before_install:
- if [ $POSTGRESFIX = true ]; then sudo -u postgres psql -c "CREATE USER testuser WITH PASSWORD 'password'"; fi
- if [ $POSTGRESFIX = true ]; then sudo -u postgres psql -c "ALTER ROLE testuser SUPERUSER"; fi
- if [ $MARIAFIX = true ]; then sudo mysql -e "GRANT ALL PRIVILEGES ON *.* TO 'testuser'@'localhost' IDENTIFIED BY 'password';"; fi
install:
- if [ $DoxGeneration = false ] && [ $DockerBuild = false ] && [ $DMAPI = true ]; then build/install_byond.sh; fi