From 5ecfe54d15471c2a4b4c71f412161c80f43fd63d Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Tue, 11 Feb 2020 14:41:54 +0100 Subject: ci: rebumped again how things are built MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Following the example set by writer-mode, I feel much more comfortable with the nix approach of installing GNU Emacs (much more reliable on CI). Plus, I've also added a Makefile so things are easier to test. Signed-off-by: Miquel Sabaté Solà --- Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e8220ae --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +all: test + +.PHONY: test +test: vendor emacs scripts lint + +.PHONY: vendor +vendor: + @gem install rubocop + +.PHONY: emacs +emacs: + @lsb_release -a + @cd .emacs.d && ./test-emacs.sh + +.PHONY: scripts +scripts: + @cd bin/test && ./test.sh + +.PHONY: lint +lint: + @find . -name "*.sh" ! -name ".gitcompletion.sh" ! -name ".hgcompletion.sh" -not -path "./.emacs.d/*" -exec shellcheck \{\} \+ + @rubocop -- cgit v1.2.3