aboutsummaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2018-09-16 23:10:13 +0200
committerGravatar Johannes Christ <[email protected]>2018-09-16 23:10:13 +0200
commitd8628581535d7879ebd62b2b19aad8a32502c2ae (patch)
treeba9bfcbb3a9b19610e4e12ec19fc72eecb7ef514 /.gitlab-ci.yml
parentFix typo. (diff)
Back to the roots.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml33
1 files changed, 8 insertions, 25 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 406d6055..3959b401 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,19 +3,12 @@ stages:
- test
- deploy
image: python:3.7-alpine
+variables:
+ PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache"
cache:
paths:
- - .cache/
-
-variables:
- PIPENV_CACHE_DIR: "$CI_PROJECT_DIR/.cache"
- PIPENV_HIDE_EMOJIS: 1
- PIPENV_IGNORE_VIRTUALENVS: 1
- PIPENV_MAX_SUBPROCESS: 2
- PIPENV_NOSPIN: 1
- PIPENV_VENV_IN_PROJECT: 1
-
+ - .cache
.test-template: &test-template
stage: test
@@ -35,9 +28,7 @@ lint:
stage: lint
before_script:
- apk add python3-dev git libpq postgresql-dev gcc cmake autoconf automake musl-dev
- - python3 -m pip install poetry
- - poetry config settings.virtualenvs.in-project true
- - poetry install
+ - python3 -m pip install .[lint]
script:
- flake8
tags:
@@ -48,9 +39,7 @@ test-3.7-alpine:
image: python:3.7-alpine
before_script:
- apk add python3-dev git libpq postgresql-dev gcc cmake autoconf automake musl-dev
- - python3 -m pip install poetry
- - poetry config settings.virtualenvs.in-project true
- - poetry install
+ - python3 -m pip install .[test]
- python manage.py migrate
script:
- coverage run --source=api,home,pysite,wiki --branch manage.py test
@@ -65,9 +54,7 @@ test-3.6-alpine:
image: python:3.6-alpine
before_script:
- apk add python3-dev git libpq postgresql-dev gcc cmake autoconf automake musl-dev
- - python3 -m pip install poetry
- - poetry config settings.virtualenvs.in-project true
- - poetry install
+ - python3 -m pip install .[test]
- python manage.py migrate
test-3.7-stretch:
@@ -78,9 +65,7 @@ test-3.7-stretch:
before_script:
- apt-get update -y
- apt-get install -y libpython3-dev git libpq-dev gcc cmake autoconf automake libc-dev
- - python3 -m pip install poetry
- - poetry config settings.virtualenvs.in-project true
- - poetry install
+ - python3 -m pip install .[test]
- python manage.py migrate
test-3.6-stretch:
@@ -91,9 +76,7 @@ test-3.6-stretch:
before_script:
- apt-get update -y
- apt-get install -y libpython3-dev git libpq-dev gcc cmake autoconf automake libc-dev
- - python3 -m pip install poetry
- - poetry config settings.virtualenvs.in-project true
- - poetry install
+ - python3 -m pip install .[test]
- python manage.py migrate
pages: