Skip to content

Commit 284b31e

Browse files
committed
Add travis CI based on nbval
1 parent a75bd90 commit 284b31e

File tree

3 files changed

+35
-1
lines changed

3 files changed

+35
-1
lines changed

.gitignore

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,15 @@ pythreejs/static/
1313
# OS X
1414
.DS_Store
1515

16-
16+
# Autogen files
1717
*_autogen.py
1818
*.autogen.js
1919
js/src/**/index.js
2020
pythreejs/**/__init__.py
21+
22+
# Test and coverage
23+
.coverage
24+
.cache
25+
htmlcov/
26+
27+

.travis.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
language: python
2+
python:
3+
- 3.5
4+
- 3.4
5+
- 2.7
6+
sudo: false
7+
cache:
8+
pip: true
9+
directories:
10+
- ~/.npm # NPM cache
11+
before_install:
12+
- pip install -U pip setuptools
13+
- nvm install 6
14+
install:
15+
- pip install --upgrade -e ".[test, examples]"
16+
script:
17+
- py.test -l --nbval-lax --current-env examples

setup.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,16 @@
5252
'ipywidgets>=7,<8',
5353
'ipydatawidgets>=1.1.1'
5454
],
55+
'extras_require': {
56+
'test': [
57+
'nbval',
58+
],
59+
'examples': [
60+
'scipy',
61+
'matplotlib',
62+
'scikit-image'
63+
],
64+
},
5565
'packages': find_packages(),
5666
'zip_safe': False,
5767
'cmdclass': cmdclass,

0 commit comments

Comments
 (0)