Skip to content

Instantly share code, notes, and snippets.

@DamienCassou
Last active Oct 10, 2015
Embed
What would you like to do?
#!/usr/bin/env 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/DamienCassou/f7d324c72cad63de484d/raw > travis.sh && source ./travis.sh
#
# Emacs 24.5 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
export PATH="/home/travis/.cask/bin:$PATH"
export PATH="/home/travis/.evm/bin:$PATH"
EVM_DIR="$HOME/.evm"
if [[ -d $EVM_DIR ]]; then
echo "EVM is already installed at '$EVM_DIR'"
exit 1
else
git clone -b ${1:-travis-binaries} https://github.com/rejeep/evm.git $EVM_DIR
echo "Successfully installed EVM! Now, add the evm binary to your PATH."
echo ' export PATH="'${EVM_DIR}'/bin:$PATH"'
fi
evm config path /tmp
evm install emacs-24.5-travis --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