Skip to content
Snippets Groups Projects
Verified Commit 8b6c668a authored by David Larlet's avatar David Larlet
Browse files

CI: explicitely create test database

parent d020705c
No related branches found
No related tags found
1 merge request!166From preprod to prod
...@@ -33,6 +33,15 @@ test: ...@@ -33,6 +33,15 @@ test:
- mkdir -p "${APT_CACHE_ARCHIVES}/partial" - mkdir -p "${APT_CACHE_ARCHIVES}/partial"
- apt update -qy - apt update -qy
- apt install -y apt-utils curl libgdal-dev - apt install -y apt-utils curl libgdal-dev
- export PGPASSWORD=$PASSWORD
- psql -c "CREATE DATABASE anthology;"
- psql -c "CREATE USER anthology_django WITH PASSWORD 'password';"
- psql -c "ALTER ROLE anthology_django SET client_encoding TO 'utf8';"
- psql -c "ALTER ROLE anthology_django SET default_transaction_isolation TO 'read committed';"
- psql -c "ALTER ROLE anthology_django SET timezone TO 'UTC-4';"
- psql -c "ALTER USER anthology_django CREATEDB;"
- psql -c "GRANT ALL PRIVILEGES ON DATABASE anthology TO anthology_django;"
- psql -c "CREATE EXTENSION postgis;"
# Install uv, see https://docs.astral.sh/uv/#getting-started # Install uv, see https://docs.astral.sh/uv/#getting-started
- curl -LsSf https://astral.sh/uv/install.sh | sh - curl -LsSf https://astral.sh/uv/install.sh | sh
# Put uv in the path # Put uv in the path
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment