CI: add one
This commit is contained in:
parent
ad184116fc
commit
d222eba15a
20
.gitlab-ci.yml
Normal file
20
.gitlab-ci.yml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
image: python:3-alpine
|
||||||
|
|
||||||
|
# Also run CI for Merge requests
|
||||||
|
workflow:
|
||||||
|
rules:
|
||||||
|
- if: $CI_PIPELINE_SOURCE == 'merge_request_event'
|
||||||
|
- if: $CI_COMMIT_TAG
|
||||||
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
||||||
|
|
||||||
|
before_script:
|
||||||
|
# - python --version ; pip --version # For debugging
|
||||||
|
- pip install flake8 -qq
|
||||||
|
|
||||||
|
test:
|
||||||
|
script:
|
||||||
|
# ignore long lines
|
||||||
|
- flake8 --ignore=E501 cleanmedia
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- cleanmedia
|
Loading…
x
Reference in New Issue
Block a user