emacs-jupyter/.travis.yml
Nathaniel Nicandro 415e3404b4 .travis.yml: Add setup for SSH related tests
* .travis.yml: Do it.
2020-04-17 14:16:11 -05:00

46 lines
1.6 KiB
YAML

# https://github.com/travis-ci/travis-ci/issues/9061
sudo: required
dist: trusty
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-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
- sudo apt-get install -y python3 python3-pip &> /dev/null
- sudo pip3 install --upgrade setuptools pip &> /dev/null
# --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 &> /dev/null
# 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
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
# Ensure ssh does not prompt for anything
- ssh-keygen -t rsa -N "" -f ~/.ssh/id_rsa
- cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
- ssh -o StrictHostKeyChecking=no localhost exit
- make dev
- make compile
- make test