branch: elpa/extmap commit 634351236bce04277c0559de132fee614f924781 Author: Paul Pogonyshev <pogonys...@gmail.com> Commit: Paul Pogonyshev <pogonys...@gmail.com>
Use Eldev. --- .gitignore | 8 +++++++- .travis.yml | 17 +++++++++++------ Eldev | 1 + run-tests.sh | 21 --------------------- 4 files changed, 19 insertions(+), 28 deletions(-) diff --git a/.gitignore b/.gitignore index fbf1940f75..40b32cdb50 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,8 @@ +/.eldev +/Eldev-local + *.elc -test/*.extmap + +/dist + +/test/*.extmap diff --git a/.travis.yml b/.travis.yml index f7268f0bcd..20a4d52f2d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,19 +1,24 @@ language: emacs-lisp +dist: trusty install: - - curl -fsSkL https://gist.github.com/rejeep/ebcd57c3af83b049833b/raw > travis.sh && source ./travis.sh - - evm install $EVM_EMACS --use --skip + - curl -fsSL https://raw.github.com/doublep/eldev/master/webinstall/travis-eldev-and-evm > x.sh && source ./x.sh + - evm install $EVM_EMACS --use env: - - EVM_EMACS=emacs-24.1-travis - - EVM_EMACS=emacs-24.2-travis - - EVM_EMACS=emacs-24.3-travis + # Not supported by Eldev; not terribly important. + # - EVM_EMACS=emacs-24.1-travis + # - EVM_EMACS=emacs-24.2-travis + # - EVM_EMACS=emacs-24.3-travis - EVM_EMACS=emacs-24.4-travis - EVM_EMACS=emacs-24.5-travis - EVM_EMACS=emacs-25.1-travis - EVM_EMACS=emacs-25.2-travis - EVM_EMACS=emacs-25.3-travis - EVM_EMACS=emacs-26.1-travis + - EVM_EMACS=emacs-26.2-travis + - EVM_EMACS=emacs-26.3-travis script: - ./run-tests.sh + - eldev -p -dtT test --expect 5 + - eldev -dtT compile --warnings-as-errors diff --git a/Eldev b/Eldev new file mode 100644 index 0000000000..81062f345c --- /dev/null +++ b/Eldev @@ -0,0 +1 @@ +; -*- mode: emacs-lisp; lexical-binding: t; no-byte-compile: t -*- diff --git a/run-tests.sh b/run-tests.sh deleted file mode 100755 index 5bbae4e908..0000000000 --- a/run-tests.sh +++ /dev/null @@ -1,21 +0,0 @@ -#! /usr/bin/env bash - -set -e - -if [ -z "$EMACS" ] ; then - EMACS=emacs -fi - -if [ -z "$ERT_SELECTOR" ] ; then - ERT_SELECTOR=t -fi - -$EMACS -batch \ - --eval "(message \"Using Emacs %s\" (emacs-version))" \ - -l extmap.el \ - -l test/extmap-test.el \ - --eval "(let ((ert-quiet t)) (ert-run-tests-batch-and-exit (quote ${ERT_SELECTOR})))" - -$EMACS -Q --batch \ - --eval "(setq byte-compile-error-on-warn t)" \ - --eval "(batch-byte-compile)" extmap.el