Skip to content

Commit

Permalink
Merge e759406 into cfd1d08
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberShadow committed Jan 15, 2020
2 parents cfd1d08 + e759406 commit 28caf6b
Show file tree
Hide file tree
Showing 49 changed files with 3,368 additions and 745 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
*.elc
/.cask/
/tests/*.res.*
14 changes: 9 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,18 @@ matrix:
allow_failures:
- env: EMACS_VERSION=snapshot
env:
- EMACS_VERSION=24.3
- EMACS_VERSION=24.5
- EMACS_VERSION=25.1
- EMACS_VERSION=25.2
- EMACS_VERSION=25.3
- EMACS_VERSION=26.1
- EMACS_VERSION=26.2
- EMACS_VERSION=26.3
- EMACS_VERSION=snapshot
before_install:
# Configure $PATH: Executables are installed to $HOME/bin
- export PATH="$HOME/bin:$PATH"
# Download the makefile to emacs-travis.mk
- wget 'https://raw.githubusercontent.com/flycheck/emacs-travis/master/emacs-travis.mk'
- wget 'https://raw.githubusercontent.com/CyberShadow/emacs-travis/patch-1/emacs-travis.mk'
# Install Emacs (according to $EMACS_VERSION) and Cask
- make -f emacs-travis.mk install_emacs
- make -f emacs-travis.mk install_cask
Expand All @@ -27,5 +30,6 @@ install:
script:
# cask exec ert-runner
- emacs --version
- make compile
- make test
- COVERALLS_PARALLEL=1 make test
notifications:
webhooks: https://coveralls.io/webhook
674 changes: 674 additions & 0 deletions COPYING

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion Cask
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
(source melpa)

(development
(depends-on "undercover"))
(depends-on "dash")
(depends-on "shut-up"))
27 changes: 23 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,32 @@
emacs ?= emacs
all: test

test: clean
cask exec emacs -Q -batch -l d-mode-test.el -l d-mode.el -f ert-run-tests-batch-and-exit
test: test-source test-compiled

test-source: clean
cask exec emacs -Q -batch -l d-mode-test.el -l d-mode.el -f ert-run-tests-batch-and-exit

test-compiled: compile
D_MODE_NO_COVERAGE=1 cask exec emacs -Q -batch -l d-mode-test.el -l d-mode.elc -f ert-run-tests-batch-and-exit

# Generate a coverage report viewable in Emacs.
coverage: clean
rm -f d-mode.elc
D_MODE_COVERAGE=1 cask exec emacs -Q -batch -l d-mode-test.el -l d-mode.el -f ert-run-tests-batch-and-exit

compile:
$(emacs) -Q -batch -f batch-byte-compile d-mode.el
$(emacs) -Q -batch --eval '(setq byte-compile-error-on-warn t)' -f batch-byte-compile d-mode.el

clean:
rm -f d-mode.elc
find tests -name '*.res.*' -delete

# Show just the differences between the actual and expected results.
test-diff:
for f in tests/*.res.* ; do diff --color -u "$${f/.res/}" "$$f" ; done

# Accept any mismatching actual output as the expected output.
test-accept:
for f in tests/*.res.* ; do mv "$$f" "$${f/.res/}" ; done

.PHONY: all test
.PHONY: all test compile clean test-diff test-accept
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@

An Emacs major mode for editing D code.

This mode is currently known to work with Emacs 24 and 25.
This mode is currently known to work with Emacs 25 and 26.
For best results, use Emacs 26.

The best way of installing this major mode, at least for Emacs 24, is to use the packaging system. Add MELPA
The best way of installing this major mode, at least for Emacs 26, is to use the packaging system. Add MELPA
or MELPA Stable to the list of repositories to access this mode. For those who want only formal, tagged
releases use MELPA Stable:

Expand Down
1 change: 1 addition & 0 deletions coverage/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/.resultset.json*

0 comments on commit 28caf6b

Please sign in to comment.