🙏
This commit is contained in:
parent
6c6e809116
commit
2d823e674c
@ -18,8 +18,8 @@ pylint:
|
|||||||
- python3.9 -m pip install pylint pylint-exit anybadge
|
- python3.9 -m pip install pylint pylint-exit anybadge
|
||||||
- mkdir ./pylint
|
- mkdir ./pylint
|
||||||
- python3.9 -m pylint --output-format=text asyncdb | tee ./pylint/pylint.log || pylint-exit "${?}"
|
- python3.9 -m pylint --output-format=text asyncdb | tee ./pylint/pylint.log || pylint-exit "${?}"
|
||||||
- PYLINT_SCORE=$(sed -n 's/^Your code has been rated at \([-0-9.]*\)\/.*/\1/p' ./pylint/pylint.log)
|
- PYLINT_SCORE="$(sed -n 's/^Your code has been rated at \([-0-9.]*\)\/.*/\1/p' ./pylint/pylint.log)"
|
||||||
- anybadge --label=Pylint --file=pylint/pylint.svg --value=$PYLINT_SCORE 2=red 4=orange 8=yellow 10=green
|
- anybadge --label=Pylint --file=pylint/pylint.svg --value="${PYLINT_SCORE}" 2=red 4=orange 8=yellow 10=green
|
||||||
- echo "Pylint score is "${PYLINT_SCORE}"
|
- echo "Pylint score is "${PYLINT_SCORE}"
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
@ -32,3 +32,12 @@ build-job:
|
|||||||
- echo "Attempting to build distribution wheel"
|
- echo "Attempting to build distribution wheel"
|
||||||
- python -m build --wheel
|
- python -m build --wheel
|
||||||
- echo "Wheel successfully built!"
|
- echo "Wheel successfully built!"
|
||||||
|
|
||||||
|
sudo gitlab-runner register -n \
|
||||||
|
--url https://gitlab.orion-technologies.io \
|
||||||
|
--registration-token cz2D-RzpirwRYPKuK1EA \
|
||||||
|
--executor docker \
|
||||||
|
--description "My Docker Runner" \
|
||||||
|
--docker-image "docker:19.03.12" \
|
||||||
|
--docker-privileged \
|
||||||
|
--docker-volumes "/certs/client"
|
||||||
|
Loading…
Reference in New Issue
Block a user