This commit is contained in:
Nick Bland 2024-03-18 14:13:07 +10:00
parent 682932287c
commit 6c61b8aebb

View File

@ -28,8 +28,8 @@ default:
- export PATH="$CARGO_HOME/bin:$PATH" - export PATH="$CARGO_HOME/bin:$PATH"
- rustc --version - rustc --version
- cargo --version - cargo --version
- if ! [ -x "$(command -v cargo-sqlx)" ]; then cargo install --version='~0.7' sqlx-cli --no-default-features --features rustls,postgres; fi
- apt update -yq && apt-get install -yq postgresql-client clang - apt update -yq && apt-get install -yq postgresql-client clang
- if ! [ -x "$(command -v cargo-sqlx)" ]; then cargo install --version='~0.7' sqlx-cli --no-default-features --features rustls,postgres; fi
- SKIP_DOCKER=true ./scripts/init_db.sh - SKIP_DOCKER=true ./scripts/init_db.sh
# This is to ensure that the database is reachable and give it some time to initialize. # This is to ensure that the database is reachable and give it some time to initialize.
- until psql "dbname=$POSTGRES_DB user=$POSTGRES_USER password=$POSTGRES_PASSWORD host=postgres" -c '\l'; do sleep 3; done - until psql "dbname=$POSTGRES_DB user=$POSTGRES_USER password=$POSTGRES_PASSWORD host=postgres" -c '\l'; do sleep 3; done