From 6353924a49ca5a54782afebd66f11bc2fc5d28e4 Mon Sep 17 00:00:00 2001 From: Nicolas Auler Date: Sun, 29 Sep 2024 23:24:51 -0300 Subject: [PATCH] wip: attempt at run database dependent tests in ci --- .circleci/config.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5b9427a..7e5d120 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -12,11 +12,15 @@ jobs: build-and-test: docker: - image: cimg/rust:1.81.0 - environment: - # Fail the build if there are warnings - RUSTFLAGS: "-D warnings" - CARGO_INCREMENTAL: 0 - # RUSTC_WRAPPER: "sccache" + environment: + # Fail the build if there are warnings + RUSTFLAGS: "-D warnings" + CARGO_INCREMENTAL: 0 + # RUSTC_WRAPPER: "sccache" + DATABASE_URL: postgresql://postgres@localhost/circle_test + - image: cimg/postgres:17.0 + environment: + POSTGRES_USER: postgres steps: - checkout - run: