diff options
| author | 2018-06-06 18:36:18 +0100 | |
|---|---|---|
| committer | 2018-06-06 18:36:18 +0100 | |
| commit | 0be7977e0ea893ef36bcf891fe2668a9304a4e14 (patch) | |
| tree | 9a29dcbee8625007e9ea5f1653a666fc26ffa023 /gitlab-ci.yml | |
| parent | Fix PEP machine (diff) | |
[CI] Build on GitLab
Diffstat (limited to 'gitlab-ci.yml')
| -rw-r--r-- | gitlab-ci.yml | 40 |
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 |