diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b4c6b04520e19957c8d406dbaa380db6350af00e..a50f2e98976c008b5f9e6b00006a87db8b037c0a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -59,6 +59,17 @@ backend-migrations: - pip install -e . - arkindex/manage.py makemigrations --check --noinput --dry-run -v 3 +backend-openapi: + extends: .backend-setup + stage: build + + script: + - ci/openapi.sh + + artifacts: + paths: + - output/ + backend-static: extends: .backend-setup stage: build diff --git a/ci/openapi.sh b/ci/openapi.sh index 25eb5effa6b2abf9d2ffe2693d2bc629629df9e3..4dafd1f39b627fcdbc1cff571bf5496aeebd0565 100755 --- a/ci/openapi.sh +++ b/ci/openapi.sh @@ -1,4 +1,4 @@ #!/bin/sh -e mkdir -p output pip install -e . -PONOS_DATA_DIR=/tmp arkindex/manage.py generateschema --generator_class arkindex.project.openapi.SchemaGenerator > output/schema.yml +arkindex/manage.py generateschema --generator_class arkindex.project.openapi.SchemaGenerator > output/schema.yml