This commit is contained in:
Nathaniel Nicandro 2021-04-02 13:51:33 -05:00
parent d1aa993285
commit 48e8f5b154

View file

@ -1,6 +1,6 @@
# https://github.com/travis-ci/travis-ci/issues/9061
sudo: required
dist: bionic
dist: xenial
language: nix
matrix:
# Report build failure/success before allowed failures complete
@ -17,17 +17,20 @@ install:
- bash <(curl https://raw.githubusercontent.com/purcell/nix-emacs-ci/master/travis-install)
# Install cask
- curl -fsSL https://raw.githubusercontent.com/cask/cask/master/go | python
- sudo apt-get install -y python3 python3-pip &> /dev/null
- python3 --version
- sudo pip3 install --upgrade setuptools pip
- sudo add-apt-repository ppa:deadsnakes/ppa -y
- sudo apt-get update
- sudo apt-get install -y python3.6
- wget https://bootstrap.pypa.io/get-pip.py
- sudo python3.6 get-pip.py
- sudo python3.6 -m pip install --upgrade setuptools pip
# --ignore-installed six since jupyter tries to upgrade it, but it can't be
# upgraded since it is a distutils package
- sudo pip3 install --ignore-installed six jupyter
- sudo python3.6 -m pip install --ignore-installed six jupyter
# Install the kernelspec using the right python. Jupyter installs a default
# python kernelspec that uses "python" for the command in
# /usr/local/share/jupyter. This installs one with an absolute path using our
# python3
- sudo python3 -m ipykernel.kernelspec
- sudo python3.6 -m ipykernel.kernelspec
before_script:
# Ensure Jupyter runtime dir can be written to
- mkdir -p $(jupyter --runtime-dir)