Gitlab ci and tox stuff

This commit is contained in:
Tyrel Souza 2016-05-20 15:08:46 -04:00
parent 58aa5b1e72
commit 6f5a6c1e8c
No known key found for this signature in database
GPG Key ID: 2EECB5087209E6A5
2 changed files with 38 additions and 11 deletions

View File

@ -1,14 +1,38 @@
image: python:2.7
before_script: before_script:
#- apt-get update -qq && apt-get install -y -qq python python-pip - pip install tox setuptools
- python --version cache:
- pip install -r requirements.txt paths:
- /root/.cache
types: stages:
- test - test
job_test: py27:
type: test stage: test
image: python:2.7
script: script:
- make test - tox -e py27
py33:
stage: test
image: python:3.3
script:
- tox -e py33
py34:
stage: test
image: python:3.4
script:
- tox -e py34
py35:
stage: test
image: python:3.5
script:
- tox -e py35
pypy:
stage: test
image: python:pypy
script:
- tox -e pypy

View File

@ -1,5 +1,8 @@
[tox] [tox]
envlist = py27,py33,py34,py35,pypy envlist = py27,py33,py34,py35,pypy
[testenv] [testenv]
deps=-rrequirements.txt deps=
commands=py.test tests.py -rrequirements.txt
commands=
py.test tests.py