-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy path.travis.yml
More file actions
31 lines (26 loc) · 743 Bytes
/
.travis.yml
File metadata and controls
31 lines (26 loc) · 743 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
language: python
notifications:
email: false
cache:
directories:
- $HOME/.cache/pip
env:
matrix:
- DISTRIB="conda" PYTHON_VERSION="3.6"
install:
- source circleci/travis_install.sh
- ipython kernel install --user --name testkernel
- jupyter kernelspec list
script:
- shopt -s globstar
- for nb in **/*ipynb; do
if [[ $nb = *"Kaggle"* ]]; then
echo "skipping kaggle kernel $nb";
else
jupyter nbconvert --ExecutePreprocessor.timeout=3600 --ExecutePreprocessor.kernel_name=testkernel --execute "$nb" --to markdown |& tee nb_to_md.txt;
traceback=$(grep "Traceback (most recent call last):" nb_to_md.txt);
if [[ $traceback ]]; then
exit 1;
fi;
fi;
done