mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 13:13:03 +00:00

* .travis.yml: Don't use sudo, submodules. (env): Test with additional Emacs versions. (install): Get Emacs binaries from https://github.com/npostavs/emacs-travis/releases. Download ert and cl-lib if needed. (script): Split compilation and testing into separate steps. * Rakefile: Use batch-byte-compile. Treat compilation warnings as errors.
29 lines
946 B
YAML
29 lines
946 B
YAML
language: generic
|
|
sudo: false
|
|
git:
|
|
submodules: false
|
|
|
|
env:
|
|
- EMACS_VERSION=23.4
|
|
- EMACS_VERSION=24.3
|
|
- EMACS_VERSION=24.5
|
|
- EMACS_VERSION=25-prerelease
|
|
|
|
install:
|
|
- 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
|
|
|
|
script:
|
|
- rake compile
|
|
- rake tests
|