- - sudo apt-get install emacs
- - sudo apt-get -t raring install libgnutls26
- - sudo apt-get install emacs-snapshot-nox
- - curl -O https://raw.github.com/ohler/ert/c619b56c5bc6a866e33787489545b87d79973205/lisp/emacs-lisp/ert.el
- - curl -O https://raw.github.com/ohler/ert/c619b56c5bc6a866e33787489545b87d79973205/lisp/emacs-lisp/ert-x.el
- - curl -o cl-lib.el http://elpa.gnu.org/packages/cl-lib-0.3.el
-before_script:
+ - curl -LO https://github.com/npostavs/emacs-travis/releases/download/bins/emacs-bin-${EMACS_VERSION}.tar.gz
+ - tar -xaf emacs-bin-${EMACS_VERSION}.tar.gz -C /
+ # Configure $PATH: Emacs installed to /tmp/emacs
+ - export PATH=/tmp/emacs/bin:${PATH}
+ - if ! emacs -Q --batch --eval "(require 'cl-lib)" ; then
+ curl -Lo cl-lib.el http://elpa.gnu.org/packages/cl-lib-0.5.el ;
+ fi
+ - if ! emacs -Q --batch --eval "(require 'ert)" ; then
+ curl -LO https://raw.githubusercontent.com/ohler/ert/c619b56c5bc6a866e33787489545b87d79973205/lisp/emacs-lisp/ert.el &&
+ curl -LO https://raw.githubusercontent.com/ohler/ert/c619b56c5bc6a866e33787489545b87d79973205/lisp/emacs-lisp/ert-x.el ;
+ fi
+ - emacs --version
+