#!/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

# Install in-place and enable the server extension
export PATH="$HOME/miniconda/bin:$PATH"
pip install -v .
jupyter serverextension enable --py jupyterlab

npm run clean
npm run build
npm test
npm run test:coverage

# Run the python tests
npm run build:serverextension
cd jupyterlab && nosetests

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

#!/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

# Install in-place and enable the server extension
export PATH="$HOME/miniconda/bin:$PATH"
pip install -v .
jupyter serverextension enable --py jupyterlab

npm run clean
npm run build
npm test
npm run test:coverage

# run the python tests
cd jupyterlab && nosetests

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

--- 
+++ 
@@ -17,7 +17,8 @@
 npm test
 npm run test:coverage
 
-# run the python tests
+# Run the python tests
+npm run build:serverextension
 cd jupyterlab && nosetests
 
 npm run build:examples
Make sure the server extension is built
