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
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ env:
- DISTRIB="conda" PYTHON_VERSION="3.4" SKLEARN_VERSION="0.18.2"
- DISTRIB="conda" PYTHON_VERSION="3.5" SKLEARN_VERSION="0.18.2"
- DISTRIB="conda" PYTHON_VERSION="3.6" COVERAGE="true" SKLEARN_VERSION="0.18.2"
- DISTRIB="conda" PYTHON_VERSION="3.6" EXAMPLES="true" SKLEARN_VERSION="0.18.2"

install: source ci_scripts/install.sh
script: bash ci_scripts/test.sh
Expand Down
9 changes: 6 additions & 3 deletions ci_scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@ popd
# provided versions
conda create -n testenv --yes python=$PYTHON_VERSION pip
source activate testenv
pip install nose numpy scipy cython scikit-learn==$SKLEARN_VERSION pandas \
matplotlib jupyter notebook nbconvert nbformat jupyter_client ipython \
ipykernel oslo.concurrency
pip install nose numpy scipy cython scikit-learn==$SKLEARN_VERSION oslo.concurrency

if [[ "$EXAMPLES" == "true" ]]; then
pip install matplotlib jupyter notebook nbconvert nbformat jupyter_client \
ipython ipykernel pandas seaborn
fi

if [[ "$COVERAGE" == "true" ]]; then
pip install codecov
Expand Down
8 changes: 5 additions & 3 deletions ci_scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ test_dir=$cwd/tests

cd $TEST_DIR

if [[ "$COVERAGE" == "true" ]]; then
nosetests --processes=4 --process-timeout=600 -sv --with-coverage --cover-package=$MODULE $test_dir
if [[ "$EXAMPLES" == "true" ]]; then
nosetests -sv $test_dir/test_examples/
elif [[ "$COVERAGE" == "true" ]]; then
nosetests --processes=4 --process-timeout=600 -sv --ignore-files="test_OpenMLDemo\.py" --with-coverage --cover-package=$MODULE $test_dir
else
nosetests --processes=4 --process-timeout=600 -sv $test_dir
nosetests --processes=4 --process-timeout=600 -sv --ignore-files="test_OpenMLDemo\.py" $test_dir
fi
Loading