Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- test:
- stage: test
- image: python:3.6.1-alpine
- services:
- - postgres:latest
- variables:
- POSTGRES_DB: consumo_gasolina
- POSTGRES_USER: postgres
- POSTGRES_PASSWORD: 123456
- artifacts:
- paths:
- - coverage_html.tar.gz
- script:
- - set -ex && apk add --no-cache --virtual .fetch-deps build-base python-dev python3-dev postgresql-dev ncurses-dev gettext libpng-dev jpeg-dev
- - mkdir html_coverage
- - pip install -U pip
- - pip install -r requirements.txt
- - coverage run ./manage.py test --parallel && coverage report -m && coverage html -d html_coverage
- - tar -czvf coverage_html.tar.gz html_coverage/
- - mv html_coverage/ public/
- only:
- - /^feature.*$/
- - /^bugfix.*$/
- - /^hotfix.*$/
- - developer
- - master
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement