travis_install.sh 823 B

12345678910111213141516171819202122232425262728293031
  1. #!/bin/bash
  2. # Copyright (c) Jupyter Development Team.
  3. # Distributed under the terms of the Modified BSD License.
  4. set -x
  5. npm update
  6. if [[ $GROUP == tests ]]; then
  7. wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
  8. fi
  9. if [[ $GROUP == coverage_and_docs ]]; then
  10. wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
  11. fi
  12. bash miniconda.sh -b -p $HOME/miniconda
  13. export PATH="$HOME/miniconda/bin:$PATH"
  14. hash -r
  15. conda config --set always_yes yes --set changeps1 no
  16. conda update -q conda
  17. conda info -a
  18. conda install -c conda-forge notebook pytest
  19. # create jupyter base dir (needed for config retrieval)
  20. mkdir ~/.jupyter
  21. # Install and enable the server extension
  22. pip install -v -e ".[test]"
  23. jupyter serverextension enable --py jupyterlab