travis_script.sh 745 B

123456789101112131415161718192021222324252627282930313233343536
  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. # 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