-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
26 lines (20 loc) · 746 Bytes
/
.travis.yml
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
language: python
notifications:
email: false
cache:
directories:
- $HOME/.cache/pip
env:
matrix:
- DISTRIB="conda" PYTHON_VERSION="3.6" TO_TEST=CODE
- DISTRIB="conda" PYTHON_VERSION="3.6" TO_TEST=NOTEBOOKS
- DISTRIB="conda" PYTHON_VERSION="3.6" TO_TEST=STYLE
install:
- source build_tools/travis_install.sh
- pip install pytest-cov codecov mypy flake8 nose
script:
- if [ "$TO_TEST" = "CODE" ]; then pytest --cov=jupyanno; fi
- if [ "$TO_TEST" = "CODE" ]; then codecov; fi
- if [ "$TO_TEST" = "STYLE" ]; then flake8 --ignore E501,F401; fi
- if [ "$TO_TEST" = "STYLE" ]; then mypy -p jupyanno --ignore-missing-imports; fi
- if [ "$TO_TEST" = "NOTEBOOKS" ]; then source build_tools/travis_notebooks.sh; fi