add ci script

This commit is contained in:
Wolfgang Hottgenroth 2019-09-10 15:59:13 +02:00
parent 832402fea6
commit 90de6537de
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F

27
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,27 @@
stages:
- check
- deploy
build:
stage: check
image: registry.gitlab.com/wolutator/base-build-env:latest
tags:
- hottis
- linux
- docker
script:
- for I in *.py; do python -m py_compile $I; done
- for I in *.py; do python -m pycodestyle --max-line-length=120 $I; done
deploy:
stage: deploy
tags:
- hottis
- linux
- rpi
- modbus
only:
- deploy
script:
- whoami