travis_script.sh 653 B

1234567891011121314151617181920212223242526272829303132
  1. #!/bin/bash
  2. # Copyright (c) Jupyter Development Team.
  3. # Distributed under the terms of the Modified BSD License.
  4. set -ex
  5. export DISPLAY=:99.0
  6. sh -e /etc/init.d/xvfb start || true
  7. # Install in-place and enable the server extension
  8. export PATH="$HOME/miniconda/bin:$PATH"
  9. pip install -v .
  10. jupyter serverextension enable --py jupyterlab
  11. npm run clean
  12. npm run build
  13. npm test
  14. npm run test:coverage
  15. npm run build:examples
  16. npm run docs
  17. cp jupyter-plugins-demo.gif docs
  18. # Make sure we can start and kill the lab server
  19. jupyter lab --no-browser &
  20. TASK_PID=$!
  21. # Make sure the task is running
  22. ps -p $TASK_PID || exit 1
  23. sleep 5
  24. kill $TASK_PID
  25. wait $TASK_PID