Commit 71f73db1 authored by Linedwell's avatar Linedwell

Update .gitlab-ci.yml

parent 84965d3a
Pipeline #26612441 failed with stages
in 41 seconds
......@@ -2,31 +2,49 @@
stages: # Defining main steps of the continous integration
- check
- build
- deploy
image: alpine #Default docker image loaded by jobs
pylint:
stage: check
image: linedwell/pylint:py2
script:
- ( pylint --output-format=colorized --disable C,R,import-error --reports=y ./*.py || pylint-exit $? ) | tee pylint.txt
artifacts:
paths:
- ./pylint.txt
expire_in: 5 min
pylint_badge:
stage: build
variables:
GIT_STRATEGY: none
before_script:
- pip install anybadge
- mkdir public
- mkdir badges
script:
- ( pylint --output-format=colorized --disable C,R,import-error --reports=y ./*.py || pylint-exit $? ) | tee pylint.txt
- score=$(sed -n 's/^Your code has been rated at \([-0-9.]*\)\/.*/\1/p' pylint.txt)
- anybadge --value=$score --file=public/pylint.svg pylint
- anybadge --value=$score --file=badges/pylint.svg pylint
dependencies:
- pylint
artifacts:
paths:
- public/pylint.svg
- badges/pylint.svg
expire_in: 5 min
pages:
stage: deploy
variables:
GIT_STRATEGY: none
script:
- mkdir .public
- cp -r * .public
- mv .public public
artifacts:
paths:
- public
- badges
only:
- master
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment