Skip to content

Commit d0f591f

Browse files
authored
Merge pull request #289 from openml/notebook
example update
2 parents f85e41f + b1b100d commit d0f591f

9 files changed

Lines changed: 426 additions & 188 deletions

File tree

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ env:
1919
- DISTRIB="conda" PYTHON_VERSION="3.4" SKLEARN_VERSION="0.18.2"
2020
- DISTRIB="conda" PYTHON_VERSION="3.5" SKLEARN_VERSION="0.18.2"
2121
- DISTRIB="conda" PYTHON_VERSION="3.6" COVERAGE="true" SKLEARN_VERSION="0.18.2"
22+
- DISTRIB="conda" PYTHON_VERSION="3.6" EXAMPLES="true" SKLEARN_VERSION="0.18.2"
2223

2324
install: source ci_scripts/install.sh
2425
script: bash ci_scripts/test.sh

ci_scripts/install.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,12 @@ popd
2626
# provided versions
2727
conda create -n testenv --yes python=$PYTHON_VERSION pip
2828
source activate testenv
29-
pip install nose numpy scipy cython scikit-learn==$SKLEARN_VERSION pandas \
30-
matplotlib jupyter notebook nbconvert nbformat jupyter_client ipython \
31-
ipykernel oslo.concurrency
29+
pip install nose numpy scipy cython scikit-learn==$SKLEARN_VERSION oslo.concurrency
30+
31+
if [[ "$EXAMPLES" == "true" ]]; then
32+
pip install matplotlib jupyter notebook nbconvert nbformat jupyter_client \
33+
ipython ipykernel pandas seaborn
34+
fi
3235

3336
if [[ "$COVERAGE" == "true" ]]; then
3437
pip install codecov

ci_scripts/test.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ test_dir=$cwd/tests
99

1010
cd $TEST_DIR
1111

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

0 commit comments

Comments
 (0)