diff options
| author | Jude Melton-Houghton <jwmhjwmh@gmail.com> | 2022-10-19 17:58:36 -0400 |
|---|---|---|
| committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2022-11-10 18:56:48 +0100 |
| commit | f8c781b46c693d8b1109d28f1105db18110d6e77 (patch) | |
| tree | a8d63c779f0a8d98c52ca883bdd968d797e03e9d /util | |
| parent | aaa05f901adddebf2435890edcbe03fe3e501771 (diff) | |
| download | minetest-f8c781b46c693d8b1109d28f1105db18110d6e77.tar.xz | |
Test PostgreSQL in CI
Diffstat (limited to 'util')
| -rw-r--r-- | util/ci/common.sh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/util/ci/common.sh b/util/ci/common.sh index c9271e813..cfac8538b 100644 --- a/util/ci/common.sh +++ b/util/ci/common.sh @@ -3,7 +3,7 @@ # Linux build only install_linux_deps() { local pkgs=( - cmake gettext + cmake gettext postgresql libpng-dev libjpeg-dev libxi-dev libgl1-mesa-dev libsqlite3-dev libhiredis-dev libogg-dev libgmp-dev libvorbis-dev libopenal-dev libpq-dev libleveldb-dev libcurl4-openssl-dev libzstd-dev @@ -19,6 +19,12 @@ install_linux_deps() { sudo apt-get update sudo apt-get install -y --no-install-recommends "${pkgs[@]}" "$@" + + sudo systemctl start postgresql.service + sudo -u postgres psql <<<" + CREATE USER minetest WITH PASSWORD 'minetest'; + CREATE DATABASE minetest; + " } # macOS build only |
