Skip to content

Commit 53bf083

Browse files
committed
Enable test coverage
1 parent 602f522 commit 53bf083

File tree

6 files changed

+42
-9
lines changed

6 files changed

+42
-9
lines changed

.travis.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,20 @@
11
language: emacs-lisp
2-
script: ./run-travis-ci.sh
32
before_install:
4-
- sudo add-apt-repository -y ppa:cassou/emacs
5-
- sudo apt-get update -qq
6-
- sudo apt-get install -qq emacs-snapshot
7-
3+
# PPA for stable Emacs packages
4+
- sudo add-apt-repository -y ppa:cassou/emacs
5+
# PPA for Emacs nightlies
6+
- sudo add-apt-repository -y ppa:ubuntu-elisp/ppa
7+
# Update and install the Emacs for our environment
8+
- sudo apt-get update -qq
9+
- sudo apt-get install -qq -yy ${EMACS}-nox ${EMACS}-el
10+
# Install cask dependencies
11+
- curl -fsSLo /tmp/cask-master.zip https://github.com/cask/cask/archive/master.zip
12+
- sudo unzip -qq -d /opt /tmp/cask-master.zip
13+
- sudo ln -sf /opt/cask-master/bin/cask /usr/local/bin/cask
14+
- cask
15+
env:
16+
- EMACS=emacs24
17+
- EMACS=emacs-snapshot
18+
script:
19+
- emacs --version
20+
- make test

Cask

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
(source gnu)
22
(source melpa)
33

4+
(package "jira-markup-mode" "0.0.1" "Emacs major mode for JIRA-markup-formatted text files.")
45
(package-file "jira-markup-mode.el")
56

67
(development
78
(depends-on "f")
89
(depends-on "ecukes")
910
(depends-on "ert-runner")
10-
(depends-on "el-mock"))
11-
11+
(depends-on "el-mock")
12+
(depends-on "undercover"))

Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
emacs ?= emacs
2+
all: test
3+
4+
test: clean
5+
cask exec emacs -Q -batch -l jira-markup-mode.el -l jira-markup-mode-test.el -f ert-run-tests-batch-and-exit
6+
7+
compile:
8+
$(emacs) -Q -batch -f batch-byte-compile jira-markup-mode.el
9+
10+
clean:
11+
rm -f f.elc
12+
13+
.PHONY: all test

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Jira Markup Mode
22

33
[![Build Status][travis-badge]][travis]
4+
[![Coverage Status][coveralls-badge]][coveralls]
45
[![MELPA][melpa-badge]][melpa]
56

67
> Please note: This project is still work in progress and
@@ -55,5 +56,7 @@ Use cases that come to mind:
5556

5657
[travis]: http://travis-ci.org/mnuessler/jira-markup-mode
5758
[travis-badge]: https://travis-ci.org/mnuessler/jira-markup-mode.svg?branch=master
59+
[coveralls]: https://coveralls.io/r/mnuessler/jira-markup-mode?branch=master
60+
[coveralls-badge]: https://coveralls.io/repos/mnuessler/jira-markup-mode/badge.svg?branch=master
5861
[melpa]: http://melpa.org/#/jira-markup-mode
5962
[melpa-badge]: http://melpa.org/packages/jira-markup-mode-badge.svg

jira-markup-mode-test.el

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
(when (require 'undercover nil t)
2+
(undercover "jira-markup-mode.el"))
3+
14
(require 'ert)
25
(require 'jira-markup-mode)
36

jira-markup-mode.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
;;; jira-markup-mode.el --- Emacs Major mode for JIRA-markup-formatted text files
22

3-
;; Copyright (C) 2012 Matthias Nuessler <[email protected]>
3+
;; Copyright (C) 2012-2015 Matthias Nuessler <[email protected]>
44

55
;; Author: Matthias Nuessler <[email protected]>>
66
;; Created: July 15, 2012
@@ -378,7 +378,7 @@ Otherwise, they will be treated as [[PageName|alias text]]."
378378
; new
379379
(defconst jira-markup-regex-subscript
380380
"\\s-+~.*~\\s-+"
381-
"Regular expression for matching ~subscript~ text.~")
381+
"Regular expression for matching ~subscript~ text.")
382382

383383
; new
384384
(defconst jira-markup-regex-monospaced

0 commit comments

Comments
 (0)