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