From f1ea436080bca1a5d10447542a11abc4931337b0 Mon Sep 17 00:00:00 2001 From: realaravinth Date: Wed, 13 Apr 2022 12:21:34 +0530 Subject: [PATCH] feat: load and init Gitea before testing --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 09b7d0d..59e70c1 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,8 @@ +define launch_test_env + docker-compose -f docker-compose-dev-deps.yml up --detach + python ./scripts/gitea.py +endef + define test_sqlite_db cd db/db-sqlx-sqlite &&\ DATABASE_URL=${SQLITE_DATABASE_URL}\ @@ -59,6 +64,7 @@ sqlx-offline-data: ## prepare sqlx offline data # cargo sqlx prepare --database-url=${POSTGRES_DATABASE_URL} -- --bin starchart \ --all-features test: migrate ## Run tests + $(call launch_test_env) $(call test_sqlite_db) cargo test --no-fail-fast