Permalink
Browse files

Travis CI

  • Loading branch information...
1 parent fc29a75 commit 52621e28bbbefbac9cf399309571ce67cefb2e3f @heynemann heynemann committed Jun 21, 2012
Showing with 43 additions and 0 deletions.
  1. +33 −0 .travis.yml
  2. +3 −0 Makefile
  3. +7 −0 test_requirements.txt
View
@@ -0,0 +1,33 @@
+language: python
+python:
+ - "2.7"
+
+install:
+ # update aptitude
+ - sudo apt-get update -y
+
+ # install aptitude packages
+ - LDFLAGS=-lm sudo aptitude install -y $(< requirements)
+
+ # weird travis-ci python paths
+ - export PYTHONPATH=$PYTHONPATH:/usr/lib/pymodules/python2.7/
+ - export PYTHONPATH=$PYTHONPATH:/usr/lib/python2.7/dist-packages
+ - export PYTHONPATH=$PYTHONPATH:/usr/lib/pyshared/python2.7/
+ - export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python2.7/site-packages/
+
+ # verify both requirements were met
+ - INSTALLDIR=$(python -c "import os; import thumbor; print(os.path.dirname(thumbor.__file__))")
+
+ # install python requirements
+ - pip install -r test_requirements.txt --use-mirrors
+
+script:
+ # weird travis-ci python paths
+ - export PYTHONPATH=$PYTHONPATH:/usr/lib/pymodules/python2.7/
+ - export PYTHONPATH=$PYTHONPATH:/usr/lib/python2.7/dist-packages
+ - export PYTHONPATH=$PYTHONPATH:/usr/lib/pyshared/python2.7/
+ - export PYTHONPATH=$PYTHONPATH:/usr/local/lib/python2.7/site-packages/
+
+ # finally run tests
+ - make ci_test
+
View
@@ -1,5 +1,8 @@
test:
nosetests -v -s tests
+ci_test:
+ nosetests -v -s tests
+
publish:
python setup.py sdist upload
@@ -0,0 +1,7 @@
+pyCrypto
+nose
+thumbor
+libevent-dev
+libxml2-dev
+libcurl4-gnutls-dev
+python-pycurl-dbg

0 comments on commit 52621e2

Please sign in to comment.