2018-11-16 00:16:27 -06:00
|
|
|
# https://github.com/travis-ci/travis-ci/issues/9061
|
|
|
|
sudo: required
|
2019-06-22 22:00:00 -05:00
|
|
|
dist: trusty
|
2018-11-16 00:16:27 -06:00
|
|
|
matrix:
|
2019-05-04 09:33:38 -05:00
|
|
|
# Report build failure/success before allowed failures complete
|
|
|
|
fast_finish: true
|
2018-11-16 00:16:27 -06:00
|
|
|
allow_failures:
|
2019-05-03 16:05:16 -05:00
|
|
|
- env: EMACS_VERSION=git-snapshot
|
2018-11-16 00:16:27 -06:00
|
|
|
env:
|
2019-05-03 16:05:16 -05:00
|
|
|
- EMACS_VERSION=26.1
|
|
|
|
- EMACS_VERSION=git-snapshot
|
2018-11-16 00:16:27 -06:00
|
|
|
before_install:
|
|
|
|
# Setup paths
|
2019-05-04 01:41:01 -05:00
|
|
|
- export PATH=${TRAVIS_BUILD_DIR}/.evm/bin:${HOME}/.cask/bin:${PATH}
|
2018-11-16 00:51:20 -06:00
|
|
|
- sudo apt-get update
|
2018-11-16 00:16:27 -06:00
|
|
|
# Install emacs
|
|
|
|
- if [[ ${EMACS_VERSION} = git-snapshot ]]; then sudo apt-get install -y texinfo; fi
|
|
|
|
# Use this fork of EVM for dynamic module support
|
|
|
|
- git clone https://github.com/ubolonton/evm ${TRAVIS_BUILD_DIR}/.evm
|
|
|
|
- evm config path /tmp
|
2019-05-09 12:50:00 -05:00
|
|
|
# Limit the output when git-snapshot, we can't just suppress it completely
|
|
|
|
# since Travis will cancel a job if it doesn't receive output after 10 mins.
|
|
|
|
- evm install emacs-${EMACS_VERSION} --use --skip | awk 'NR % 1000 == 0'
|
2018-11-16 00:16:27 -06:00
|
|
|
# Install cask
|
2019-05-03 16:05:16 -05:00
|
|
|
- curl -fsSL https://raw.githubusercontent.com/cask/cask/master/go | python
|
2018-11-16 00:16:27 -06:00
|
|
|
install:
|
2019-05-20 18:30:09 -05:00
|
|
|
- sudo apt-get install -y gdb
|
2019-05-23 16:51:03 -05:00
|
|
|
- gdb --version
|
|
|
|
- evm bin
|
2019-05-09 08:51:26 -05:00
|
|
|
- sudo apt-get install -y python3 python3-pip &> /dev/null
|
|
|
|
- sudo pip3 install --upgrade setuptools pip &> /dev/null
|
2018-11-16 18:16:26 -06:00
|
|
|
# --ignore-installed six since jupyter tries to upgrade it, but it can't be
|
|
|
|
# ugraded since it is a distutils package
|
2019-05-09 08:51:26 -05:00
|
|
|
- sudo pip3 install --ignore-installed six jupyter &> /dev/null
|
2018-11-16 05:26:37 -06:00
|
|
|
# Install the kernelspec using the right python. Jupyter installs a default
|
|
|
|
# python kernelspec that uses "python" for the command in
|
2018-11-16 18:16:26 -06:00
|
|
|
# /usr/local/share/jupyter. This installs one with an absolute path using our
|
|
|
|
# python3
|
2018-11-16 05:26:37 -06:00
|
|
|
- sudo python3 -m ipykernel.kernelspec
|
2018-11-16 00:16:27 -06:00
|
|
|
- cd $TRAVIS_BUILD_DIR
|
|
|
|
- make dev
|
2018-11-16 05:10:19 -06:00
|
|
|
# Ensure Jupyter runtime dir can be written to
|
2018-11-16 04:27:57 -06:00
|
|
|
- mkdir -p $(jupyter --runtime-dir)
|
2018-11-16 05:10:19 -06:00
|
|
|
- jupyter --runtime-dir
|
|
|
|
- jupyter --paths
|
2019-06-22 21:59:00 -05:00
|
|
|
- jupyter --version
|
|
|
|
- jupyter notebook --version
|
2018-11-16 05:10:19 -06:00
|
|
|
- jupyter kernelspec list
|
2019-05-20 18:30:09 -05:00
|
|
|
before_script:
|
|
|
|
- ulimit -c unlimited -S
|
|
|
|
after_failure:
|
|
|
|
- COREFILE=$(find . -maxdepth 1 -name "core*" | head -n 1)
|
2019-05-23 16:51:03 -05:00
|
|
|
- if [[ -f "$COREFILE" ]]; then gdb -c "$COREFILE" $(evm bin) -ex "thread apply all bt" -ex "set pagination 0" -batch; fi
|
2019-05-04 09:33:38 -05:00
|
|
|
script:
|
|
|
|
- cd $TRAVIS_BUILD_DIR
|
2019-05-02 18:54:00 -05:00
|
|
|
- make compile
|
2018-11-16 00:16:27 -06:00
|
|
|
- make test
|