argh
This commit is contained in:
parent
ad42cf80f2
commit
7909e743fd
1 changed files with 2 additions and 1 deletions
|
@ -14,7 +14,7 @@ if [ "$DATABASE" = "pgsql" ]; then
|
||||||
sudo -u postgres psql -c "CREATE DATABASE shimmie WITH OWNER shimmie;" -U postgres
|
sudo -u postgres psql -c "CREATE DATABASE shimmie WITH OWNER shimmie;" -U postgres
|
||||||
export TEST_DSN="pgsql:user=shimmie;password=shimmie;host=127.0.0.1;dbname=shimmie"
|
export TEST_DSN="pgsql:user=shimmie;password=shimmie;host=127.0.0.1;dbname=shimmie"
|
||||||
fi
|
fi
|
||||||
if [ "$DATABASE" == "mysql" ]; then
|
if [ "$DATABASE" = "mysql" ]; then
|
||||||
sudo systemctl start mysql
|
sudo systemctl start mysql
|
||||||
mysql --version
|
mysql --version
|
||||||
mysql -e "SET GLOBAL general_log = 'ON';" -uroot -proot
|
mysql -e "SET GLOBAL general_log = 'ON';" -uroot -proot
|
||||||
|
@ -28,6 +28,7 @@ if [ "$DATABASE" = "sqlite" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$GITHUB_ENV" ]; then
|
if [ -n "$GITHUB_ENV" ]; then
|
||||||
|
echo "Setting DSN for $DATABASE: $TEST_DSN"
|
||||||
echo "TEST_DSN=$TEST_DSN" >> $GITHUB_ENV
|
echo "TEST_DSN=$TEST_DSN" >> $GITHUB_ENV
|
||||||
echo "INSTALL_DSN=$TEST_DSN" >> $GITHUB_ENV
|
echo "INSTALL_DSN=$TEST_DSN" >> $GITHUB_ENV
|
||||||
fi
|
fi
|
||||||
|
|
Reference in a new issue