mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-31 00:50:45 +01:00
Use a custom MariaDB user
This commit is contained in:
+3
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user