Changed travis test structure; Added lint test

This commit is contained in:
terrytangyuan 2015-12-06 11:24:42 -05:00
parent e82fccc9cc
commit 7e5d249eca
3 changed files with 16 additions and 0 deletions

View File

@ -6,6 +6,11 @@ language: python
os:
- linux
env:
matrix:
- TASK=lint
- TASK=python-test
cache:
apt: true
directories:

11
scripts/run_tests.sh Normal file
View File

@ -0,0 +1,11 @@
#!/bin/bash
if [ ${TASK} == "lint" ]; then
if [ ${TRAVIS_OS_NAME} != "osx" ]; then
make lint || exit -1
fi
fi
if [ ${TASK} == "python-test" ]; then
nosetests
fi