mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-04 15:41:37 -05:00
57 lines
2.1 KiB
YAML
57 lines
2.1 KiB
YAML
# https://github.com/travis-ci/travis-ci/issues/9061
|
|
sudo: required
|
|
dist: xenial
|
|
language: nix
|
|
matrix:
|
|
# Report build failure/success before allowed failures complete
|
|
fast_finish: true
|
|
allow_failures:
|
|
- env: EMACS_CI=emacs-snapshot
|
|
env:
|
|
- EMACS_CI=emacs-26-1
|
|
- EMACS_CI=emacs-26-3
|
|
- EMACS_CI=emacs-27-1
|
|
- EMACS_CI=emacs-snapshot
|
|
install:
|
|
# Install Emacs
|
|
- 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
|
|
# We go the route of installing Python3.6 like this because the
|
|
# python3 apt package on Xenial maxes out at 3.5 and for some reason
|
|
# installing setuptools using the python3-pip apt package installs a
|
|
# setuptools that uses f-strings, a feature in 3.6.
|
|
#
|
|
# One option would have been to update to Bionic, but apparently we
|
|
# can't since we use language: nix, see
|
|
# https://travis-ci.community/t/for-dist-bionic-xenial-vm-is-used-instead-with-language-rust/4487/3
|
|
- 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 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.6 -m ipykernel.kernelspec
|
|
# Install additional packages needed by the tests
|
|
- sudo apt-get install pandoc
|
|
before_script:
|
|
# Ensure Jupyter runtime dir can be written to
|
|
- mkdir -p $(jupyter --runtime-dir)
|
|
- jupyter --runtime-dir
|
|
- jupyter --paths
|
|
- jupyter --version
|
|
- jupyter notebook --version
|
|
- jupyter kernelspec list
|
|
script:
|
|
- export PATH=$HOME/.cask/bin:$PATH
|
|
- cd $TRAVIS_BUILD_DIR
|
|
- make dev
|
|
- make compile
|
|
- make test
|