diff --git a/.travis.yml b/.travis.yml index f8271cab72..f299f314f9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,6 +17,8 @@ matrix: env: DISTRIB="conda" PYTHON_VERSION="3.5" COVERAGE="true" MINICONDA_URL="https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh" - os: linux env: DISTRIB="conda" PYTHON_VERSION="3.6" MINICONDA_URL="https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh" + - os: linux + env: DISTRIB="conda" PYTHON_VERSION="3.6" EXAMPLES="true" MINICONDA_URL="https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh" # Temporarily disabling OSX builds because thy take too long # Set language to generic to not break travis-ci diff --git a/ci_scripts/test.sh b/ci_scripts/test.sh index 2a0a9d2174..370c6444ca 100644 --- a/ci_scripts/test.sh +++ b/ci_scripts/test.sh @@ -5,12 +5,18 @@ set -e mkdir -p $TEST_DIR cwd=`pwd` +examples_dir=$pwd/example test_dir=$cwd/test/ cd $TEST_DIR if [[ "$COVERAGE" == "true" ]]; then nosetests --no-path-adjustment -sv --with-coverage --cover-package=$MODULE $test_dir +elif [[ "$EXAMPLES" == "true" ]]; then + for example in `find $examples_dir -name '*.py'` + do + python $example + done else nosetests --no-path-adjustment -sv $test_dir fi