aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitlab-ci.yml15
1 files changed, 3 insertions, 12 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b268400d..a2d460ae 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -28,8 +28,8 @@ variables:
lint-python:
stage: lint
image: python:3.7-alpine
+ # Extract lint dependencies from the setup script.
before_script:
- # Extract lint dependencies from the setup script.
- >
python -m pip install $(sed -n -e "/'lint': \[/,/]/p" setup.py | tail -n +2 | head -n -1 | cut -d"'" -f2)
script:
@@ -59,16 +59,11 @@ test-3.7-alpine:
<<: *test-template
image: python:3.7-alpine
before_script:
- - apk add --no-cache-dir \
- gcc \
- linux-headers \
- musl-dev \
- postgresql-dev
+ - apk add gcc linux-headers musl-dev postgresql-dev
- python -m pip install -e .[test]
- python manage.py migrate
script:
- coverage run --branch manage.py test
- after_script:
- coverage report
artifacts:
paths:
@@ -78,11 +73,7 @@ test-3.6-alpine:
<<: *test-template
image: python:3.6-alpine
before_script:
- - apk add --no-cache-dir \
- gcc \
- linux-headers \
- musl-dev \
- postgresql-dev
+ - apk add gcc linux-headers musl-dev postgresql-dev
- python -m pip install -e .[test]
- python manage.py migrate