Merge branch 'master' into master

This commit is contained in:
Alpha Tan 2018-08-15 17:50:01 +08:00 committed by GitHub
commit 5f37713d9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 14 deletions

View File

@ -4,18 +4,24 @@ version: 2.0
default: &default-steps
steps:
- checkout
- run: apt-get update
- run: apt-get install -y openjdk-8-jre
- run: make
- run:
name: Update APT packages
command: apt-get update
- run:
name: Install prerequisites
command: apt-get install -y openjdk-8-jre make python git
- run:
name: Install cask
command: curl -fsSL https://raw.githubusercontent.com/cask/cask/master/go | python
- run:
name: Make Cask available on the path
command: echo 'export PATH="/root/.cask/bin:$PATH"' >> $BASH_ENV
- run:
name: Run the tests
command: 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
@ -39,7 +45,7 @@ workflows:
version: 2
ci-test-matrix:
jobs:
- test-emacs-24
- test-emacs-25
- test-emacs-26
- test-emacs-master
# Testing against master currently hangs on CircleCI
#- test-emacs-master

View File

@ -2,11 +2,12 @@
;; Filename: plantuml-mode.el
;; Description: Major mode for PlantUML diagrams sources
;; Compatibility: Tested with Emacs 24.3 through 24.5 on OS X 10.10
;; Compatibility: Tested with Emacs 25 through 27 (current master)
;; Author: Zhang Weize (zwz)
;; Maintainer: Carlo Sciolla (skuro)
;; Keywords: uml plantuml ascii
;; Version: 1.2.7
;; Package-Requires: ((emacs "25.0"))
;; This file is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by

View File

@ -11,11 +11,12 @@
(ert-deftest custom-jar-location ()
(setq-local plantuml-jar-path "~/.plantuml/plantuml.jar")
(should (equal `("-Djava.awt.headless=true" "-jar"
,(expand-file-name "~/.plantuml/plantuml.jar"))
,(expand-file-name "~/.plantuml/plantuml.jar")
"-charset" "UTF-8")
(plantuml-render-command)))
(setq-local plantuml-jar-path "/path/with spaces/plantuml.jar")
(should (equal `("-Djava.awt.headless=true" "-jar" "/path/with spaces/plantuml.jar")
(should (equal `("-Djava.awt.headless=true" "-jar" "/path/with spaces/plantuml.jar" "-charset" "UTF-8")
(plantuml-render-command))))
(provide 'plantuml-mode-custom-jar-location-test)