aboutsummaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2018-08-30 21:54:42 +0200
committerGravatar Johannes Christ <[email protected]>2018-08-30 21:54:42 +0200
commit2f252bc12c5ddb5acb3132b1bd851fd2dd641f03 (patch)
tree8c6e0c238e25225fd55da0f99bb3aedcb9847aae /.gitlab-ci.yml
parentAdd coverage reports. (diff)
Always upload cov reports, add pipenv cache.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml13
1 files changed, 8 insertions, 5 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index cec84074..5389495a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -4,6 +4,13 @@ stages:
- test
- deploy
+cache:
+ paths:
+ - .cache/
+
+variables:
+ PIPENV_CACHE_DIR: "$CI_PROJECT_DIR/.cache"
+
build base image:
image: docker:stable-git
stage: build
@@ -19,7 +26,7 @@ lint:
image: registry.gitlab.com/python-discord/projects/site/django-base:latest
stage: lint
script:
- - pipenv install --dev --system
+ - pipenv install --dev
- flake8
test:
@@ -56,7 +63,3 @@ pages:
paths:
- public
expire_in: 30 days
- only:
- - master
- - django
- - django+add-gitlab-ci