mini gitlab-ci test

This commit is contained in:
Nicholas St. Germain 2019-07-12 19:42:01 -05:00
parent 0a6a23bc66
commit 6d33253608
No known key found for this signature in database
GPG key ID: 291EE25B239FA5EE

20
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,20 @@
stages:
- test
- deploy
- release
variables:
DOCKER_REPO: "boerderij/varken"
GIT_REPO: 'Boerderij/Varken'
VERSION_FILE: "varken/__init__.py"
FLAKE_FILES: "Varken.py varken/*.py"
TAG: ""
GIT_TOKEN: credentials('github-jenkins-token')
flake8-test:
image: python:3.7.3-alpine
stage: test
script:
- pip install flake8
- flake8 --max-line-length 120 $FLAKE_FILES
- grep -i version $VERSION_FILE | cut -d" " -f3 | tr -d \\"