diff options
author | Hugo Duncan <hugo@hugoduncan.org> | 2013-02-10 08:00:27 -0500 |
---|---|---|
committer | Hugo Duncan <hugo@hugoduncan.org> | 2013-02-10 10:14:33 -0500 |
commit | 55a8a680f2504d8079d87d7d2d39e0728d3558c7 (patch) | |
tree | b15d3e7755d2718d61b0b42368983b72f37bbe5f /.travis.yml | |
parent | 4aa9f49243a5c3b2cd3dbc6e155f86d08bcc3c83 (diff) |
Add unit tests to travis configuration
This adds a top level Makefile with test, checkdoc and build targets
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 32 |
1 files changed, 26 insertions, 6 deletions
diff --git a/.travis.yml b/.travis.yml index 0898e9d9..ac0fa7ab 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,29 @@ language: emacs-lisp + env: - - EMACS=emacs24 -before_script: - - export DEBIAN_FRONTEND='noninteractive' - - wget ftp://download.tuxfamily.org/user42/checkdoc-batch.el + matrix: + - NREPL_DEPS=stable + - NREPL_DEPS=latest + global: + - EMACS=emacs24 + +install: + - if [ "$EMACS" = "emacs24" ]; then + sudo add-apt-repository -y ppa:cassou/emacs && + sudo apt-get update -qq && + sudo apt-get install -qq emacs24 emacs24-el; + fi + - if [ "$NREPL_DEPS" = "stable" ]; then + make downloads-stable; + fi + - if [ "$NREPL_DEPS" = "latest" ]; then + make downloads-latest; + fi + script: - - echo "starting" - - "emacs -batch -l checkdoc-batch.el -f checkdoc-batch-commandline nrepl.el | grep -e 'nrepl.el:[1-9]' && exit 1 || exit 0" + - if [ "$NREPL_DEPS" = "latest" ]; then + $EMACS --version && make test-latest-no-backtrace checkdoc EMACS=$EMACS; + fi + - if [ "$NREPL_DEPS" = "stable" ]; then + $EMACS --version && make test-no-backtrace checkdoc EMACS=$EMACS; + fi |