From 2f4f140874adefb134d05554ef7687af2ab73185 Mon Sep 17 00:00:00 2001 From: Samuel Tonini Date: Tue, 18 Aug 2015 08:49:15 +0200 Subject: [PATCH] add Makefile --- Makefile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..75f004a7 --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +ELIXIR = elixir + +VERSION = $(shell git describe --tags --abbrev=0 | sed 's/^v//') + +NO_COLOR=\033[0m +INFO_COLOR=\033[2;32m +STAT_COLOR=\033[2;33m + +all: test + +test: test_server + ${MAKE} test_doc + +test_server: + @ echo "\n$(INFO_COLOR)Run server tests: $(NO_COLOR)\n" + $(ELIXIR) test/server_test.exs + +test_doc: + @ echo "\n$(INFO_COLOR)Run documentation tests: $(NO_COLOR)\n" + $(ELIXIR) test/documentation_test.exs + +.PHONY: test test_server test_doc