Have Travis run all tests except the external and async ones
authorShivaram Lingamneni <slingamn@cs.stanford.edu>
Wed, 2 May 2012 06:42:24 +0000 (23:42 -0700)
committerShivaram Lingamneni <slingamn@cs.stanford.edu>
Thu, 3 May 2012 03:20:26 +0000 (20:20 -0700)
(async is currently unsupported under Python 3)

.travis.yml
Makefile

index 5bac46eb0a0d1df10f72504b5f4331818469bfa5..10521989c9027ceb0e2e6baed78b7d88aa5887d2 100644 (file)
@@ -4,7 +4,7 @@ python:
   - 2.7
   - 3.2
 env: HTTPBIN_URL=http://httpbin.org/
-script: make simpleci
+script: make ci
 install:
   - pip install nose
   - pip install . --use-mirrors
index 25d023695de76b3f46e7153c09eec0db1dac1c49..db387710dccc057a73e89251ca0f1c1ea5e6f7a1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -13,15 +13,12 @@ lazy:
 simple:
        nosetests tests/test_requests.py
 
+ci:
+       find tests/ -name "*.py" ! -name "test_requests_ext.py" ! -name "test_requests_async.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