travis_install.sh 833 B

1234567891011121314151617181920212223242526272829303132
  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 ]]; 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 retreival)
  20. mkdir ~/.jupyter
  21. # Install and enable the server extension
  22. pip install -U pip
  23. pip install -v -e ".[test]"
  24. jupyter serverextension enable --py jupyterlab