travis_script.sh 784 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. export PATH="$HOME/miniconda/bin:$PATH"
  8. npm run clean
  9. npm run build
  10. npm test || npm test
  11. npm run test:coverage || npm run test:coverage
  12. # Install in-place and enable the server extension
  13. pip install -v .
  14. jupyter serverextension enable --py jupyterlab
  15. # Run the python tests
  16. npm run build:serverextension
  17. pushd jupyterlab && nosetests && popd
  18. npm run build:examples
  19. npm run docs
  20. cp jupyter-plugins-demo.gif docs
  21. # Make sure we can start and kill the lab server
  22. jupyter lab --no-browser &
  23. TASK_PID=$!
  24. # Make sure the task is running
  25. ps -p $TASK_PID || exit 1
  26. sleep 5
  27. kill $TASK_PID
  28. wait $TASK_PID