Moved CI to Travis.

This commit is contained in:
Jannis Leidel 2012-05-07 08:35:36 +02:00
parent 33c1197ad1
commit 45700c7e1c
4 changed files with 21 additions and 64 deletions

16
.travis.yml Normal file
View file

@ -0,0 +1,16 @@
language: python
python:
# - "2.5"
- "2.6"
- "2.7"
install:
- pip install -q -r requirements/default.txt Django==$DJANGO --use-mirrors
script:
- django-admin.py jenkins
branches:
only:
- develop
env:
- DJANGO=1.2.7
- DJANGO=1.3.1
- DJANGO=1.4

View file

@ -1,6 +1,8 @@
django-dbtemplates
==================
.. image:: https://secure.travis-ci.org/jezdez/django-dbtemplates.png?branch=develop
``dbtemplates`` is a Django app that consists of two parts:
1. It allows you to store templates in your database

3
requirements/default.txt Normal file
View file

@ -0,0 +1,3 @@
pep8
pyflakes
django-jenkins

64
tox.ini
View file

@ -1,64 +0,0 @@
[testenv]
downloadcache = {toxworkdir}/_download/
setenv =
DJANGO_SETTINGS_MODULE = dbtemplates.test_settings
commands =
{envbindir}/python {envbindir}/django-admin.py jenkins {posargs:dbtemplates}
[testenv:docs]
basepython = python2.7
deps =
Sphinx==1.0.7
Django==1.3.1
commands =
rm -rf docs/_build
{envbindir}/sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html
[testenv:py25-1.2.X]
basepython = python2.5
deps =
django==1.2.5
pep8
pyflakes
django-jenkins
[testenv:py26-1.2.X]
basepython = python2.6
deps =
django==1.2.5
pep8
pyflakes
django-jenkins
[testenv:py27-1.2.X]
basepython = python2.7
deps =
django==1.2.5
pep8
pyflakes
django-jenkins
[testenv:py25]
basepython = python2.5
deps =
django==1.3
pep8
pyflakes
django-jenkins
[testenv:py26]
basepython = python2.6
deps =
django==1.3
pep8
pyflakes
django-jenkins
[testenv:py27]
basepython = python2.7
deps =
django==1.3
pep8
pyflakes
django-jenkins