Last active
October 10, 2015 06:33
-
-
Save DamienCassou/f7d324c72cad63de484d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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