add gitlab continuous integration config

master
Justin Riley 2016-10-11 22:28:48 -04:00
parent 74cd3fb003
commit ceb941d501
1 changed files with 21 additions and 0 deletions

21
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,21 @@
image: python:2.7.12-slim
before_script:
- pip install -r requirements.txt
- pip install -r test-requirements.txt
- coverage erase
variables:
COVERAGE_FILE: .coverage
pytest:
stage: test
script:
- ONE_XMLRPC="http://localhost:2633/RPC2" python setup.py test
tags:
- docker
after_script:
- coverage combine
- coverage report
- coverage html