Marcel van der Boom
9 years ago
5 changed files with 50 additions and 8 deletions
@ -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 |
||||
|
||||
|
@ -0,0 +1,5 @@
@@ -0,0 +1,5 @@
|
||||
(source gnu) |
||||
(source melpa) |
||||
|
||||
(development |
||||
(depends-on "json-rpc")) |
@ -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 |
@ -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…
Reference in new issue