convert testing infrastructure to tox

This converts the testing infrastructure to tox for both locally
testing and travis. This is nearly equivalent to the previous testing
with the only exception that linting fails with the first tool to fail
and won't process all of them.

Slightly tricky thing is that tox resets *all* of the environment for
it's subprocess runs by default. A couple of the dependencies we have
will not install in non UTF8 locales: temper-python & XBee.
This commit is contained in:
Sean Dague committed 2016-02-14 13:04:42 -05:00
1 parent 278033cbf9
commit 97c0f5bb5a
7 files changed
+82 -104

No files matched your search

+4 -28
View File
@@ -1,30 +1,6 @@
#!/bin/sh
#
# NOTE: all testing is now driven through tox. The tox command below
# performs roughly what this test did in the past.
# script/test: Run test suite for application. Optionally pass in a path to an
# individual test file to run a single test.
cd "$(dirname "$0")/.."
echo "Running tests..."
if [ "$1" = "coverage" ]; then
py.test -v --timeout=30 --cov --cov-report=
TEST_STATUS=$?
else
py.test -v --timeout=30
TEST_STATUS=$?
fi
if [ "$NO_LINT" = "1" ]; then
LINT_STATUS=0
else
script/lint
LINT_STATUS=$?
fi
if [ $LINT_STATUS -eq 0 ]
then
exit $TEST_STATUS
else
exit $LINT_STATUS
fi
tox -e py34