aboutsummaryrefslogtreecommitdiffstats
path: root/gitlab-ci.yml
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab-ci.yml')
-rw-r--r--gitlab-ci.yml40
1 files changed, 40 insertions, 0 deletions
diff --git a/gitlab-ci.yml b/gitlab-ci.yml
new file mode 100644
index 000000000..0b7ffbc56
--- /dev/null
+++ b/gitlab-ci.yml
@@ -0,0 +1,40 @@
+image: python:3.6-alpine3.7
+
+variables:
+ PIPENV_VENV_IN_PROJECT: 1
+ PIPENV_IGNORE_VIRTUALENVS: 1
+
+
+before_script:
+ - apk add --update tini
+ - apk add --update build-base
+ - apk add --update libffi-dev
+ - apk add --update zlib
+ - apk add --update jpeg-dev
+ - apk add --update libxml2 libxml2-dev libxslt-dev
+ - apk add --update zlib-dev
+ - apk add --update freetype-dev
+
+stages:
+ - test
+ - build
+
+test:
+ stage: test
+ cache:
+ paths:
+ - ".venv"
+
+ script:
+ - pip install pipenv
+ - pipenv sync --dev --three
+ - pipenv run python -m flake8
+
+build:
+ services:
+ - docker:dind
+
+ stage: build
+ script:
+ - apk add docker curl
+ - sh scripts/deploy.sh