Browse Source

Add travis-ci.org setup for project.

Thomas Adamcik 12 years ago
parent
commit
adf3159f5b
2 changed files with 22 additions and 0 deletions
  1. 20 0
      .travis.yml
  2. 2 0
      README.rst

+ 20 - 0
.travis.yml

@@ -0,0 +1,20 @@
+language: python
+
+python:
+  - "2.6"
+  - "2.7"
+
+env:
+  - DJANGO='Django<=1.4' PYSCOPG2='psycopg2==2.4.1' # see django issue #16250
+  - DJANGO='Django<=1.5' PYSCOPG2='psycopg2'
+
+install:
+  - pip install -q $PYSCOPG2 --use-mirrors
+  - pip install -q $DJANGO --use-mirrors
+  - pip install -q IPy --use-mirrors
+  - pip install . --use-mirrors
+
+before_script:
+  - psql -c 'create database netfields;' -U postgres
+
+script: "./manage.py test"

+ 2 - 0
README.rst

@@ -1,6 +1,8 @@
 Django PostgreSQL Netfields
 ===========================
 
+.. image:: https://secure.travis-ci.org/adamcik/django-postgresql-netfields.png
+
 This project is an attempt at making proper Django net related fields for
 Django Currently the built in ``IPAddressField`` does not support IPv6 and uses
 an inefficient ``HOST()`` cast in all lookups. Hopefully there experience from