Merge branch 'master' of rwthgit:lukas.woelfer/shenzhen-solitaire

This commit is contained in:
Lukas Wölfer
2019-06-25 14:23:04 +02:00
3 changed files with 19 additions and 0 deletions

8
.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,8 @@
testing:
script: "python3 -m unittest discover"
linting:
script: "python3 -m pylint --extension-pkg-whitelist=cv2 shenzhen_solitaire test"
typing:
script: "python3 -m mypy --strict shenzhen_solitaire test"

4
CI_README.md Normal file
View File

@@ -0,0 +1,4 @@
- Build the docker in the dockerfile.
- Install gitlab-runner, `systemctl start gitlab-runner`.
- `sudo gitlab-runner register`, values required are in the gitlab repository under 'Settings/CI/Runners'
- Set the `pull_policy = "never"`

7
Dockerfile Normal file
View File

@@ -0,0 +1,7 @@
FROM alpine:latest
RUN apk add python3 python3-dev gcc musl-dev
RUN python3 -m pip install --upgrade pip
RUN python3 -m pip install mypy pylint