Advertisement
Guest User

Untitled

a guest
Sep 14th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. test:
  2. stage: test
  3. image: python:3.6.1-alpine
  4. services:
  5. - postgres:latest
  6. variables:
  7. POSTGRES_DB: consumo_gasolina
  8. POSTGRES_USER: postgres
  9. POSTGRES_PASSWORD: 123456
  10. artifacts:
  11. paths:
  12. - coverage_html.tar.gz
  13. script:
  14. - set -ex && apk add --no-cache --virtual .fetch-deps build-base python-dev python3-dev postgresql-dev ncurses-dev gettext libpng-dev jpeg-dev
  15. - mkdir html_coverage
  16. - pip install -U pip
  17. - pip install -r requirements.txt
  18. - coverage run ./manage.py test --parallel && coverage report -m && coverage html -d html_coverage
  19. - tar -czvf coverage_html.tar.gz html_coverage/
  20. - mv html_coverage/ public/
  21. only:
  22. - /^feature.*$/
  23. - /^bugfix.*$/
  24. - /^hotfix.*$/
  25. - developer
  26. - master
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement