summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenedikt Heine <bebe@bebehei.de>2018-06-19 16:56:48 +0200
committerBenedikt Heine <bebe@bebehei.de>2018-06-19 17:17:51 +0200
commitadc9348e80cd0e0b1b5614433e33d1ff63e0e19d (patch)
treebfe25e778fda5db89d8d96d472fa15d79710d5b7
parentbc29d468ca20ce84c3753d83116348d977604822 (diff)
Expose the testsuite in the Makefile
-rw-r--r--.travis.yml2
-rw-r--r--Makefile3
2 files changed, 4 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml
index fc58769..71bc279 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -22,4 +22,4 @@ addons:
script:
- make -j
- clang-format-3.5 -i $(find . -name "*.[ch]" | tr '\n' ' ') && git diff --exit-code || (echo 'Code was not formatted using clang-format!'; false)
- - ./travis/run-tests.pl
+ - make test
diff --git a/Makefile b/Makefile
index 86830ef..5ec5871 100644
--- a/Makefile
+++ b/Makefile
@@ -99,6 +99,9 @@ i3status: ${OBJS}
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
@echo " LD $@"
+test: i3status
+ LC_ALL=C ./travis/run-tests.pl
+
clean:
rm -f *.o src/*.o