12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- #!/bin/bash
- # Copyright (c) Jupyter Development Team.
- # Distributed under the terms of the Modified BSD License.
- set -ev
- set -o pipefail
- # Building should work without yarn installed globally
- rm /home/travis/.yarn/bin/*
- !yarn --version
- # The miniconda directory may exist if it has been restored from cache
- if [ -d "$MINICONDA_DIR" ] && [ -e "$MINICONDA_DIR/bin/conda" ]; then
- echo "Miniconda install already present from cache: $MINICONDA_DIR"
- else # if it does not exist, we need to install miniconda
- rm -rf "$MINICONDA_DIR" # remove the directory in case we have an empty cached directory
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -nv -O ~/miniconda.sh;
- set +ev
- bash ~/miniconda.sh -b -p "$MINICONDA_DIR"
- set -ev
- chown -R "$USER" "$MINICONDA_DIR"
- hash -r
- fi
- export PATH="$MINICONDA_DIR/bin:$PATH"
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a # for debugging
- conda remove --name test --all || true
- conda create -q -n test --quiet -c conda-forge notebook pytest python=$PYTHON
- set +ev
- source activate test
- set -ev
- # create jupyter base dir (needed for config retrieval)
- mkdir ~/.jupyter
- # Install and enable the server extension
- pip install -q -e ".[test]"
- jlpm versions
- jlpm config current
- jupyter serverextension enable --py jupyterlab
|