]> rtime.felk.cvut.cz Git - sojka/company-mode.git/blob - Makefile
Run tests non-interactively
[sojka/company-mode.git] / Makefile
1 EMACS=emacs
2 CURL=curl --silent
3 ERT_URL=http://git.savannah.gnu.org/cgit/emacs.git/plain/lisp/emacs-lisp/ert.el?h=emacs-24.3
4
5 .PHONY: ert test test-batch
6
7 package: *.el
8         @ver=`grep -o "Version: .*" company.el | cut -c 10-`; \
9         tar cjvf company-$$ver.tar.bz2 --mode 644 `git ls-files '*.el' | xargs`
10
11 elpa: *.el
12         @version=`grep -o "Version: .*" company.el | cut -c 10-`; \
13         dir=company-$$version; \
14         mkdir -p "$$dir"; \
15         cp `git ls-files '*.el' | xargs` company-$$version; \
16         echo "(define-package \"company\" \"$$version\" \
17         \"Modular in-buffer completion framework\")" \
18         > "$$dir"/company-pkg.el; \
19         tar cvf company-$$version.tar --mode 644 "$$dir"
20
21 clean:
22         @rm -rf company-*/ company-*.tar company-*.tar.bz2 *.elc ert.el
23
24 test:
25         ${EMACS} -Q -nw -L . -l company-tests.el -l company-elisp-tests.el \
26         --eval "(let (pop-up-windows) (ert t))"
27
28 test-batch:
29         ${EMACS} -Q --batch -L . -l company-tests.el -l company-elisp-tests.el \
30         --eval "(ert-run-tests-batch-and-exit '(not (tag interactive)))"
31
32 downloads:
33         ${EMACS} -Q --batch -l ert || \
34         ${CURL} ${ERT_URL} > ert.el
35
36 compile:
37         ${EMACS} -Q --batch -L . -f batch-byte-compile company.el company-*.el