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:
#- apt-get update -qq && apt-get install -y -qq python python-pip
- python --version
- pip install -r requirements.txt
- pip install tox setuptools
cache:
paths:
- /root/.cache
types:
stages:
- test
job_test:
type: test
py27:
stage: test
image: python:2.7
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]
envlist = py27,py33,py34,py35,pypy
[testenv]
deps=-rrequirements.txt
commands=py.test tests.py
deps=
-rrequirements.txt
commands=
py.test tests.py