From 1ed00734ae0a21d08bc0b487d0d14f02bed548eb Mon Sep 17 00:00:00 2001 From: Jordi Loyzaga Date: Sat, 27 Apr 2024 02:47:17 -0600 Subject: [PATCH] Testing test CI DB --- .drone.yml | 7 ++++++- scripts/setup.sh | 2 ++ scripts/{run_tests.sh => test.sh} | 0 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100755 scripts/setup.sh rename scripts/{run_tests.sh => test.sh} (100%) diff --git a/.drone.yml b/.drone.yml index bdb1c83..f0b9b36 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,12 +1,17 @@ kind: pipeline name: default +type: docker + +workspace: + path: / steps: - name: unittest image: python commands: - pip install -r requirements_test.txt - - ./scripts/run_tests.sh + - ./scripts/setup.sh + - ./scripts/tests.sh settings: username: diff --git a/scripts/setup.sh b/scripts/setup.sh new file mode 100755 index 0000000..9fb1e20 --- /dev/null +++ b/scripts/setup.sh @@ -0,0 +1,2 @@ +cd lockbox +python manage.py migrate_schemas \ No newline at end of file diff --git a/scripts/run_tests.sh b/scripts/test.sh similarity index 100% rename from scripts/run_tests.sh rename to scripts/test.sh