Commit 9ca40c96 authored by steckerhalter's avatar steckerhalter

build emacs from source

parent 599982c3
......@@ -12,21 +12,25 @@ else
dir="$PWD"
fi
if ! dpkg -l | grep python-software-properties; then
sudo apt-get update
sudo apt-get install -qq python-software-properties
fi
pwd=`pwd`
if ! grep cassou /etc/apt/sources.list.d/*; then
sudo add-apt-repository -y ppa:cassou/emacs
sudo apt-get update
if ! test -e /usr/local/bin/emacs; then
{
>&2 echo "--- installing deps ---"
sudo apt-get update
sudo apt-get -y install build-essential wget git mercurial
sudo apt-get -y build-dep emacs23
wget http://ftp.gnu.org/gnu/emacs/emacs-25.3.tar.gz -O- | tar xz
cd emacs-25.3
>&2 echo "--- building emacs ---"
./configure &&\
make &&\
sudo make install
sudo apt-get install -y -qq git
} > /dev/null
fi
if ! dpkg -l | grep emacs24; then
sudo apt-get install -qq git mercurial subversion bzr cvs emacs24 emacs24-el emacs24-common-non-dfsg emacs-snapshot-el emacs-snapshot-gtk emacs-snapshot
fi
echo "--- running tests ---"
emacs24 --batch --eval "(setq travis-ci-dir \"$dir\")" --load $dir/ci/.emacs
rm -rf ~/.emacs.d/
emacs-snapshot --batch --eval "(setq travis-ci-dir \"$dir\")" --load $dir/ci/.emacs
emacs --batch --eval "(setq travis-ci-dir \"$dir\")" --load $dir/ci/.emacs
rm -rf ~/.emacs.d/
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment