aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Christie2012-08-25 20:07:53 +0100
committerTom Christie2012-08-25 20:07:53 +0100
commit46ecf8d86fe05e536a131a77a7379c5538c0e577 (patch)
tree2aec050d8eb926b3dbe3e3368659b3f6b386cec5
parent00d3aa21ba3bd5524932a692b75053a24ecbebd2 (diff)
downloaddjango-rest-framework-46ecf8d86fe05e536a131a77a7379c5538c0e577.tar.bz2
Travis CI
-rw-r--r--.gitignore2
-rw-r--r--.travis.yml23
2 files changed, 24 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index c7bf0a8f..40c68bd5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,7 +3,6 @@
*~
.*
-assetplatform.egg-info/*
coverage.xml
env
docs/build
@@ -18,3 +17,4 @@ djangorestframework.egg-info/*
MANIFEST
!.gitignore
+!.travis.yml
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 00000000..7cc2a31f
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,23 @@
+language: python
+
+python:
+ - "2.5"
+ - "2.6"
+ - "2.7"
+env:
+ - DJANGO=https://github.com/django/django/zipball/master TESTS='python setup.py test'
+ - DJANGO=https://github.com/django/django/zipball/master TESTS='python examples/runtests.py'
+ - DJANGO=django==1.4.1 --use-mirrors TESTS='python setup.py test'
+ - DJANGO=django==1.4.1 --use-mirrors TESTS='python examples/runtests.py'
+ - DJANGO=django==1.3.3 --use-mirrors TESTS='python setup.py test'
+ - DJANGO=django==1.3.3 --use-mirrors TESTS='python examples/runtests.py'
+# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors
+install:
+ - pip install $DJANGO
+ - pip install -e . --use-mirrors
+ - pip install -r requirements.txt
+ - pip install -r examples/requirements.txt
+
+# command to run tests, e.g. python setup.py test
+script:
+ - $TESTS