summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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