Skip to content

Instantly share code, notes, and snippets.

@rejeep
Last active December 29, 2015 22:19
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save rejeep/7736123 to your computer and use it in GitHub Desktop.
Save rejeep/7736123 to your computer and use it in GitHub Desktop.
Setup Evm and Cask on Travis.
#!/bin/sh
# This script will setup Evm (Emacs Version Manager) and Cask on
# Travis to use for Emacs Lisp testing.
#
# In .travis.yml, add this:
#
# - curl -fsSkL https://gist.github.com/rejeep/7736123/raw > travis.sh && source ./travis.sh
#
# Emacs 24.3 is installed in the above script because Cask requires
# Emacs 24 to be installed. Because of this, when installing other
# environments in the .travis.yml configuration, use the --skip
# option, for example:
#
# - evm install $EVM_EMACS --use --skip
sudo mkdir /usr/local/evm
sudo chown travis:travis /usr/local/evm
export PATH="/home/travis/.cask/bin:$PATH"
export PATH="/home/travis/.evm/bin:$PATH"
curl -fsSkL https://raw.github.com/rejeep/evm/master/go | bash
evm install emacs-24.3-bin --use --skip
curl -fsSkL https://raw.github.com/cask/cask/master/go | python
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment