-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path.travis.yml
executable file
·38 lines (37 loc) · 1.15 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
language: python
python:
- 3.6
branches:
only:
- master
before_install:
# install python and jupyter, etc, using miniconda
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- deps='pip coverage nose codecov'
- conda create -q -n test-environment $deps
- source activate test-environment
- conda install -c conda-forge nodejs
- npm update
- npm -v
- node -v
- conda install -c conda-forge jupyterlab=2.1.2
- conda install -c conda-forge ipywidgets
- jupyter labextension install @jupyter-widgets/jupyterlab-manager
- pip install git+https://github.com/aaronwatters/jp_proxy_widget
- jupyter labextension install ./js
install:
- (cd end_to_end_tests && npm install)
# trick from https://gist.github.com/jamesarosen/e29076bd81a099f0f72e
env:
- TEST_COMMAND="nosetests --with-coverage --cover-package=jp_proxy_widget"
- TEST_COMMAND="cd end_to_end_tests && npm test"
script:
- (eval "$TEST_COMMAND")
after_success:
- ls
- if test -f ".coverage"; then codecov; fi