Browse Source

Further test config

master
Marcel van der Boom 9 years ago
parent
commit
1bbd169a4c
  1. 1
      .gitignore
  2. 24
      .travis.yml
  3. 5
      Cask
  4. 13
      Makefile
  5. 15
      ert-tests/twister-rpc-test.el

1
.gitignore vendored

@ -0,0 +1 @@ @@ -0,0 +1 @@
.cask

24
.travis.yml

@ -1,12 +1,20 @@ @@ -1,12 +1,20 @@
language: emacs-lisp
before_install:
- if [ "$EMACS" = 'emacs-snapshot' ]; then
sudo add-apt-repository -y ppa:cassou/emacs &&
sudo apt-get update --allow-unauthenticated -qq &&
sudo apt-get install -qq
emacs-snapshot-el emacs-snapshot-gtk emacs-snapshot;
fi
# PPA for stable emacs packages
- sudo add-apt-repository -y ppa:cassou/emacs
# PPA for emacs nightlies
- sudo add-apt-repository -y ppa:ubuntu-elisp/ppa
# Uupdat and install the Emacs for our environment
- sudo apt-get update -qq
- sudo apt-get install -qq -yy ${EMACS}-nox ${EMACS}-el
- curl -fsSLo /tmp/cask-master.zip https://github.com/cask/cask/archive/master.zip
- sudo unzip -qq -d /opt /tmp/cask-master.zip
- sudo ln -sf /opt/cask-master/bin/cask /usr/local/bin/cask
- cask
env:
- EMACS=emacs
- EMACS=emacs24
- EMACS=emacs-snapshot
script:
make travis-ci EMACS=$EMACS
- emacs --version
- make test

5
Cask

@ -0,0 +1,5 @@ @@ -0,0 +1,5 @@
(source gnu)
(source melpa)
(development
(depends-on "json-rpc"))

13
Makefile

@ -0,0 +1,13 @@ @@ -0,0 +1,13 @@
emacs ?= emacs
all: test
test: clean
cask exec emacs -Q -batch -l ./ert-tests/twister-rpc-test.el -l ./twister-rpc.el -f ert-run-tests-batch-and-exit
compile:
$(emacs) -Q -batch -f batch-byte-compile twister-rpc.el
clean:
rm -f f.elc
.PHONY: all test

15
ert-tests/twister-rpc-test.el

@ -0,0 +1,15 @@ @@ -0,0 +1,15 @@
;; Unit test for twister-rpc.el
(require 'twister-rpc)
;; Interactive
(ert-deftest interactive-test-01 nil
"This test should run on travis"
:tags '(:interactive)
(should t))
;; Non-interactive
(ert-deftest has-feature-01 nil
"This test should run on travis"
(should (featurep 'twister-rpc)))
Loading…
Cancel
Save