diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..585eced --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,20 @@ +image: python:3.11 + +stages: + - prepare + - test + +prepare: + stage: prepare + script: + - python -V + - pip install -r requirements.txt + +test: + stage: test + script: + - python manage.py migrate --noinput + - python manage.py runserver 0.0.0.0:8000 & + - sleep 5 + - curl --fail http://localhost:8000/ +