Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions ci_scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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