#!/bin/bash # Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. set -ex export DISPLAY=:99.0 sh -e /etc/init.d/xvfb start || true export PATH="$HOME/miniconda/bin:$PATH" npm run clean npm run build npm test || npm test npm run test:coverage || npm run test:coverage # Install in-place and enable the server extension pip install -v . jupyter serverextension enable --py jupyterlab # Run the python tests npm run build:serverextension pushd jupyterlab && nosetests && popd npm run build:examples npm run docs cp jupyter-plugins-demo.gif docs # Make sure we can start and kill the lab server jupyter lab --no-browser & TASK_PID=$! # Make sure the task is running ps -p $TASK_PID || exit 1 sleep 5 kill $TASK_PID wait $TASK_PID