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

* Rakefile (.elc): Set byte-compile-force-lexical-warnings when compiling. (:compile_all): New target that compiles yasnippet-debug.el and yasnippet-tests.el too. * .travis.yml (script): Use it instead of `compile'. Update cl-lib to 0.6.1. Don't error on warnings for Emacs 24.3 on yasnippet-tests.el. * yasnippet-debug.el: Don't use `yas--loaddir' if it's not bound (e.g., when compiling). Require `color' and `edebug' at toplevel. Check if `subr-x' defines `when-let'. (yas-debug-snippet-vars): Remove, it was unused and broken. * yasnippet-tests.el (yas-with-snippet-dirs, (yas-should-expand) (yas--collect-menu-items, yas-should-not-expand, yas-mock-insert) (yas-mock-yank, yas--key-binding, yas-make-file-or-dirs) (yas-variables, yas-call-with-saving-variables) (yas-call-with-snippet-dirs, special-mode, string-suffix-p): Move to top section. (yas-tests--ran-exit-hook): Rename from yas--ran-exit-hook, and move to top-level. * yasnippet.el (yas--letenv): Evaluate the FORMs of ENV.
46 lines
1.4 KiB
YAML
46 lines
1.4 KiB
YAML
language: generic
|
|
sudo: false
|
|
git:
|
|
submodules: false
|
|
|
|
env:
|
|
global:
|
|
- Wlexical=t
|
|
- Werror=t
|
|
- tests_Werror=t # For yasnippet-tests.el
|
|
matrix:
|
|
- EMACS_VERSION=23.4
|
|
# 24.3 gives a bunch of 'value returned from (car value-N) is
|
|
# unused' warnings.
|
|
- EMACS_VERSION=24.3 tests_Werror=nil
|
|
- EMACS_VERSION=24.5
|
|
- EMACS_VERSION=25.2
|
|
|
|
|
|
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.6.1.el ;
|
|
export warnings="'(not cl-functions)" ;
|
|
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 yasnippet.elc
|
|
- rake yasnippet-debug.elc
|
|
- rake yasnippet-tests.elc Werror=$tests_Werror
|
|
- rake tests
|
|
|
|
notifications:
|
|
email:
|
|
# Default is change, but that includes a new branch's 1st success.
|
|
on_success: never
|
|
on_failure: always # The default.
|