Gitlab
Docker in Docker
image: docker:stable
before_script:
- docker info
build:
stage: build
script:
- cat ${PASSWORD} | docker login -u <login> --password-stdin <hub>
- docker build -t <hub>/<img> .
- docker push <hub>/<img>
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 <LIST-OF-FILES-TO-RUN-PYLINT-AGAINST> | 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