forked from jupyter-widgets/widget-ts-cookiecutter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
48 lines (48 loc) · 1.32 KB
/
.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
language: python
dist: xenial
services:
- xvfb
python:
- 3.7
sudo: false
addons:
apt_packages:
- pandoc
cache:
pip: true
directories:
- $HOME/.npm
before_install:
- pip install -U pip setuptools
- nvm install 8
- pip install cookiecutter
install:
- pushd $(mktemp -d)
- cookiecutter $TRAVIS_BUILD_DIR --config-file $TRAVIS_BUILD_DIR/tests/testconfig.yaml --no-input
- pushd jupyter-widget-testwidgets
- pip install --upgrade -v -e ".[test, examples, docs]"
before_script:
- |
export CHROME_BIN=chromium-browser
script:
- py.test
- npm test
# Check docs can be build + links
- pushd docs
- make html
- make linkcheck
- popd
# Make a non-local install so the data_files get populated
- pip uninstall -y ipywidgettestwidgets
- pip install .
- jupyter nbextension enable --py --sys-prefix ipywidgettestwidgets
# Validate nbextension (enable does not use exit code):
- python -c "from notebook.nbextensions import validate_nbextension; import sys; sys.exit(validate_nbextension('ipywidgettestwidgets/extension') or 0)"
- pip install jupyterlab
# Make sure our lab extension was installed.
- jupyter labextension list
- jupyter labextension list 2>&1 | grep -q jupyter-widget-testwidgets
# Make sure our lab extension can be linked.
- jupyter labextension link
- popd
- popd