Skip to content
Browse files

set up Travis CI

  • Loading branch information...
1 parent e2f4ba2 commit 84f933e401d3158773078f16535f52fca6d81d9a @senko senko committed Oct 9, 2012
Showing with 25 additions and 0 deletions.
  1. +5 −0 .travis.yml
  2. +20 −0 Makefile
View
5 .travis.yml
@@ -0,0 +1,5 @@
+language: python
+python:
+ - 2.7
+install: make requirements
+script: make test
View
20 Makefile
@@ -0,0 +1,20 @@
+MANAGE=python manage.py
+APPS=core pm hr track
+
+.PHONY: all test coverage clean requirements
+
+all: coverage
+
+test:
+ $(MANAGE) test $(APPS) --settings=people.settings.test
+
+coverage:
+ $(MANAGE) test $(APPS) --settings=people.settings.test \
+ --with-coverage --with-xunit --cover-html --cover-erase
+
+clean:
+ rm -rf .coverage cover
+ find . -name '*.pyc' -exec rm '{}' ';'
+
+requirements:
+ pip install -r requirements.txt

0 comments on commit 84f933e

Please sign in to comment.
Something went wrong with that request. Please try again.