File tree Expand file tree Collapse file tree 16 files changed +154
-0
lines changed Expand file tree Collapse file tree 16 files changed +154
-0
lines changed Original file line number Diff line number Diff line change
1
+ * .elc
2
+ * .log
3
+ * .html
4
+ /testing-clean-install /
5
+ /elpa /
6
+ * .tar
7
+ .elpa
8
+ .cask
9
+ /_site /
10
+ /dist /
11
+ flycheck_ * .el
Original file line number Diff line number Diff line change
1
+ language : emacs-lisp
2
+ sudo : false
3
+
4
+ before_install :
5
+ # evm install
6
+ - curl -fsSkL https://gist.github.com/rejeep/ebcd57c3af83b049833b/raw > x.sh && source ./x.sh
7
+ - evm install $EVM_EMACS --use --skip
8
+ # install the matrix's emacs version
9
+ - cask --version
10
+ - emacs --version
11
+ # install deps for cask
12
+ - EMACS="/home/travis/.evm/bin/emacs" cask install
13
+ env :
14
+ - EVM_EMACS=emacs-25.1-travis
15
+ - EVM_EMACS=emacs-25.2-travis
16
+ - EVM_EMACS=emacs-25.3-travis
17
+ - EVM_EMACS=emacs-26.1-travis
18
+ script :
19
+ - pwd
20
+ - EMACS="/home/travis/.evm/bin/emacs" make install test
Original file line number Diff line number Diff line change
1
+ (source melpa )
2
+
3
+ (package-file " format-table.el" )
4
+
5
+ (development
6
+ (depends-on " dash" )
7
+ (depends-on " ert" )
8
+ (depends-on " ert-runner" ))
Original file line number Diff line number Diff line change
1
+ PACKAGE = format-table
2
+ VERSION = $$(grep "^;; Version: " $(PACKAGE ) .el | cut -f3 -d' ' )
3
+ ARCHIVE = $(PACKAGE ) -$(VERSION ) .tar
4
+ EMACS ?= emacs
5
+ CASK ?= cask
6
+ LANG =en_US.UTF-8
7
+
8
+ .PHONY : clean
9
+
10
+ # pr:
11
+ # hub pull-request -b org-trello:master
12
+
13
+ deps :
14
+ ${CASK}
15
+
16
+ build :
17
+ ${CASK} build
18
+
19
+ clean-dist :
20
+ rm -rf dist/
21
+
22
+ clean : clean-dist
23
+ rm -rf * .tar
24
+ ${CASK} clean-elc
25
+
26
+ install :
27
+ ${CASK} install
28
+
29
+ test : clean
30
+ ${CASK} exec ert-runner
31
+
32
+ pkg-file :
33
+ ${CASK} pkg-file
34
+
35
+ pkg-el : pkg-file
36
+ ${CASK} package
37
+
38
+ package : clean pkg-el
39
+ cp dist/$(ARCHIVE ) .
40
+ make clean-dist
41
+
42
+ info :
43
+ ${CASK} info
44
+
45
+ # install-package-from-melpa:
46
+ # ./install-package-from.sh melpa
47
+
48
+ # install-file-with-deps-from-melpa: package
49
+ # ./install-file-with-deps-from.sh melpa $(VERSION)
50
+
51
+ # release:
52
+ # ./release.sh $(VERSION) $(PACKAGE)
53
+
54
+ version :
55
+ @echo " application $( PACKAGE) : $( VERSION) \npackage: $( ARCHIVE) "
56
+
57
+ install-cask :
58
+ curl -fsSkL https://raw.github.com/cask/cask/master/go | python
59
+
60
+ # emacs-install-clean: package
61
+ # ~/bin/emacs/emacs-install-clean.sh ./$(ARCHIVE)
62
+
63
+ tests :
64
+ ./run-tests.sh 25.1-travis 25.2-travis 25.3-travis 26.1-travis
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ for version in $* ; do
4
+ EMACS_NAME=emacs-$version
5
+ # forge the right path
6
+ PATH=$( evm bin $EMACS_NAME ) :~ /.evm/bin/:~ /.cask/bin/:/usr/local/bin:/usr/bin/:/bin
7
+ # use the emacs version
8
+ evm use $EMACS_NAME
9
+ # check the right emacs version is found
10
+ emacs --version
11
+ # install deps
12
+ cask install
13
+ # run the tests
14
+ make test
15
+ done
Original file line number Diff line number Diff line change
1
+ EMACS =emacs
2
+
3
+ .PHONY : test
4
+
5
+ TEST_SRCS = $(wildcard test-data/* )
6
+
7
+ test : compile-all checkdoc
8
+ $(EMACS ) -Q --batch $(CL ) \
9
+ --eval ' (setq byte-compile-warnings (quote (not cl-functions)))' \
10
+ -l ert -l ../format-table.elc -l format-table-test.elc \
11
+ --eval ' (ert-run-tests-batch-and-exit $(SELECTOR))'
12
+
13
+ checkdoc :
14
+ $(EMACS ) -Q --batch $(CL ) -l checkdoc-batch.el 2>&1 | \
15
+ grep -E " format-table.el:[1-9]+" && exit 1 || exit 0
16
+
17
+ compile-all :
18
+ $(EMACS ) -Q --batch $(CL ) \
19
+ --eval ' (setq byte-compile-warnings (quote (not cl-functions)))' \
20
+ --eval ' (setq byte-compile-error-on-warn t)' \
21
+ -l ../format-table.el \
22
+ -f batch-byte-compile ../format-table.el format-table-test.el
23
+
24
+ html : $(TEST_HTML )
25
+
26
+ clean :
27
+ rm -f $(TEST_HTML ) * .elc ../* .elc
28
+
29
+ evm :
30
+ $(MAKE ) test EMACS=" $( shell evm bin emacs-25.1) " CL=" "
31
+ $(MAKE ) test EMACS=" $( shell evm bin emacs-25.2) " CL=" "
32
+ $(MAKE ) test EMACS=" $( shell evm bin emacs-25.3) " CL=" "
33
+ $(MAKE ) test EMACS=" $( shell evm bin emacs-26.1) " CL=" "
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments