Skip to content

Proposal - Add EVM (emacs version manager) to deal with emacs versions on travis #373

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 21 additions & 25 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,31 @@
language: emacs-lisp

env:
global:
- PATH=$HOME/.cask/bin:$HOME/.evm/bin:$PATH
matrix:
- EMACS=emacs23
- EMACS=emacs24
- EMACS=emacs-snapshot
# # Cask does not support emacs < 24
# - EVM_EMACS=emacs-23.4-bin
# # dependencies break in ghc-core.el about cl-lib
# - EVM_EMACS=emacs-24.1-bin
# # dependencies break in ghc-core.el about cl-lib
# - EVM_EMACS=emacs-24.2-bin
- EVM_EMACS=emacs-24.3-bin
- EVM_EMACS=emacs-24.4-bin
# allow_failures:
# - EVM_EMACS=emacs-23.4-bin
# - EVM_EMACS=emacs-24.1-bin
# - EVM_EMACS=emacs-24.2-bin

matrix:
allow_failures:
- env:
- EMACS=emacs-snapshot

install:
- if [ "$EMACS" = "emacs23" ]; then
sudo apt-get update -qq &&
sudo apt-get install -qq emacs23-gtk emacs23-el;
fi
- if [ "$EMACS" = "emacs24" ]; then
sudo add-apt-repository -y ppa:cassou/emacs &&
sudo apt-get update -qq &&
sudo apt-get install -qq emacs24 emacs24-el;
fi
- if [ "$EMACS" = "emacs-snapshot" ]; then
sudo add-apt-repository -y ppa:cassou/emacs &&
sudo apt-get update -qq &&
sudo apt-get install -qq emacs-snapshot &&
sudo apt-get install -qq emacs-snapshot-el emacs-snapshot-gtk;
fi
before_install:
- curl -fsSkL https://gist.github.com/rejeep/7736123/raw > travis.sh && source ./travis.sh
# install the matrix's emacs version
- evm install $EVM_EMACS --use --skip
# install deps for cask
- cask

script:
lsb_release -a && $EMACS --version && make EMACS=$EMACS check
lsb_release -a && emacs --version && make check

notifications:
email: false
Expand Down