travis_install.sh 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. #!/bin/bash
  2. # Copyright (c) Jupyter Development Team.
  3. # Distributed under the terms of the Modified BSD License.
  4. set -x
  5. if [[ $GROUP == tests || $GROUP == other ]]; then
  6. wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh;
  7. fi
  8. if [[ $GROUP == coverage ]]; then
  9. wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O ~/miniconda.sh;
  10. fi
  11. bash ~/miniconda.sh -b -p $HOME/miniconda
  12. export PATH="$HOME/miniconda/bin:$PATH"
  13. hash -r
  14. conda config --set always_yes yes --set changeps1 no
  15. conda update -q conda
  16. conda info -a
  17. conda install -c conda-forge notebook pytest
  18. # create jupyter base dir (needed for config retrieval)
  19. mkdir ~/.jupyter
  20. # Install and enable the server extension
  21. pip install -v -e ".[test]"
  22. # Make sure the schema and theme files exist
  23. test -e jupyterlab/schemas/jupyter.extensions.shortcuts.json
  24. test -e jupyterlab/themes/jupyterlab-theme-light-extension/images/jupyterlab.svg
  25. jlpm versions
  26. jlpm config current
  27. jlpm cache list
  28. jlpm install
  29. jlpm run build
  30. jupyter serverextension enable --py jupyterlab