forked from emacs-jupyter/jupyter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (57 loc) · 2.13 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# 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