====== Gitlab ======
===== Docker in Docker =====
image: docker:stable
before_script:
- docker info
build:
stage: build
script:
- cat ${PASSWORD} | docker login -u --password-stdin
- docker build -t /
.
- docker push /
===== Badges =====
==== Pylint ====
In your README.md you can include an image with:

If you want to make the image into a link you can use:
[](LINKTARGET)
* gitlab-ci.yml:
pylint:
stage: test
script:
- pylint --rcfile=.pylintrc --output-format=text | tee pylint.txt
- score=$(sed -n 's/^Your code has been rated at \([-0-9.]*\)\/.*/\1/p' pylint.txt)
- echo "Pylint score was $score"
- anybadge --value=$score --file=public/pylint.svg pylint
artifacts:
paths:
- public/pylint.svg
pages:
stage: deploy
artifacts:
paths:
- public
only:
- master