Update Makefile and travis configuration to run all (non-external) tests
authorShivaram Lingamneni <slingamn@cs.stanford.edu>
Wed, 2 May 2012 05:52:34 +0000 (22:52 -0700)
committerShivaram Lingamneni <slingamn@cs.stanford.edu>
Wed, 2 May 2012 06:21:05 +0000 (23:21 -0700)
.travis.yml
Makefile

index 5bac46eb0a0d1df10f72504b5f4331818469bfa5..b32441c7cd54890346a8d2af7d968d7677a2c6b1 100644 (file)
@@ -4,7 +4,8 @@ python:
   - 2.7
   - 3.2
 env: HTTPBIN_URL=http://httpbin.org/
-script: make simpleci
+script: make ci
 install:
   - pip install nose
+  - pip install gevent
   - pip install . --use-mirrors
index 25d023695de76b3f46e7153c09eec0db1dac1c49..604976c33801d29feb549afe63cd3b762a038197 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -13,15 +13,12 @@ lazy:
 simple:
        nosetests tests/test_requests.py
 
+ci:
+       find tests/ -name "*.py" ! -path "test_requests_ext.py" | xargs nosetests --with-xunit --xunit-file=junit-report.xml
+
 server:
        gunicorn httpbin:app --bind=0.0.0.0:7077 &
 
-ci: init
-       nosetests tests/test_requests.py --with-xunit --xunit-file=junit-report.xml
-
-simpleci:
-       nosetests tests/test_requests.py --with-xunit --xunit-file=junit-report.xml
-
 stats:
        pyflakes requests | awk -F\: '{printf "%s:%s: [E]%s\n", $1, $2, $3}' > violations.pyflakes.txt