Support CircleCI

And by the way, use coveralls.io
This commit is contained in:
Carlo Sciolla 2018-03-18 19:17:38 +01:00
parent 788f64dd5f
commit 75ffccdc91
No known key found for this signature in database
GPG Key ID: BA5D71E6F3C580C1
6 changed files with 82 additions and 12 deletions

57
.circleci/config.yml Normal file
View File

@ -0,0 +1,57 @@
version: 2.0
# Default actions to perform on each Emacs version
default: &default-steps
steps:
- checkout
- run: make
# Enumerated list of Emacs versions
jobs:
test-emacs-24:
docker:
- image: silex/emacs:24
entrypoint: bash
<<: *default-steps
test-emacs-25:
docker:
- image: silex/emacs:25
entrypoint: bash
<<: *default-steps
test-emacs-26:
docker:
- image: silex/emacs:26.0
entrypoint: bash
<<: *default-steps
test-emacs-master:
docker:
- image: silex/emacs:master
entrypoint: bash
<<: *default-steps
coverage:
docker:
- image: silex/emacs:25
entrypoint: bash
steps:
- checkout
- run: make clean submit-coverage
# Executing in parallel
workflows:
version: 2
ci-test-matrix:
jobs:
- test-emacs-24
- test-emacs-25
- test-emacs-26
- test-emacs-master
- coverage:
requires:
- test-emacs-24
- test-emacs-25
- test-emacs-26
- test-emacs-master

1
.gitignore vendored
View File

@ -1 +1,2 @@
.cask
.coveralls.yml

3
Cask
View File

@ -7,4 +7,5 @@
(depends-on "f")
(depends-on "ecukes")
(depends-on "ert-runner")
(depends-on "el-mock"))
(depends-on "el-mock")
(depends-on "undercover"))

View File

@ -1,18 +1,25 @@
CASK ?= cask
EMACS ?= emacs
CASK_DIR ?= `${CASK} package-directory`
#
# Programs used in the make goals
#
export CASK ?= cask
export EMACS ?= emacs
all: test
#
# General configuration
#
export CASK_DIR ?= `${CASK} package-directory`
export BATCH = --batch -q -l .emacs/init.el
test: unit ecukes
all: version test
version:
$(EMACS) $(BATCH) --version
test: install unit ecukes
unit:
${CASK} exec ert-runner
# TODO: add BDD style tests
#ecukes:
# ${CASK} exec ecukes
install:
${CASK} install
@ -20,4 +27,4 @@ clean:
rm -Rf .emacs.d
rm -Rf .cask
.PHONY: all test unit ecukes install
.PHONY: all test unit install clean

View File

@ -1,4 +1,4 @@
[![MELPA](http://melpa.org/packages/plantuml-mode-badge.svg)](http://melpa.org/#/plantuml-mode) [![MELPA Stable](http://stable.melpa.org/packages/plantuml-mode-badge.svg)](http://stable.melpa.org/#/plantuml-mode) [![Build Status](https://travis-ci.org/skuro/plantuml-mode.svg?branch=master)](https://travis-ci.org/skuro/plantuml-mode)
[![MELPA](http://melpa.org/packages/plantuml-mode-badge.svg)](http://melpa.org/#/plantuml-mode) [![MELPA Stable](http://stable.melpa.org/packages/plantuml-mode-badge.svg)](http://stable.melpa.org/#/plantuml-mode) [![Build Status](https://travis-ci.org/skuro/plantuml-mode.svg?branch=master)](https://travis-ci.org/skuro/plantuml-mode) [![Coverage Status](https://coveralls.io/repos/github/skuro/plantuml-mode/badge.svg?branch=master)](https://coveralls.io/github/skuro/plantuml-mode?branch=master)
# PlantUML mode for Emacs

View File

@ -35,6 +35,10 @@
(defun load-plantuml-mode ()
(require 'plantuml-mode (f-expand "plantuml-mode.el" package-code-path)))
;; enable code coverage
(when (require 'undercover nil t)
(undercover "plantuml-mode.el"))
(load-plantuml-mode)
;;; test-helper.el ends here