aboutsummaryrefslogtreecommitdiffstats
path: root/gitlab-ci.yml
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-06-06 18:36:18 +0100
committerGravatar Gareth Coles <[email protected]>2018-06-06 18:36:18 +0100
commit0be7977e0ea893ef36bcf891fe2668a9304a4e14 (patch)
tree9a29dcbee8625007e9ea5f1653a666fc26ffa023 /gitlab-ci.yml
parentFix PEP machine (diff)
[CI] Build on GitLab
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