summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorYann Collet <yann.collet.73@gmail.com>2014-10-28 14:35:43 (GMT)
committerYann Collet <yann.collet.73@gmail.com>2014-10-28 14:35:43 (GMT)
commit9bf331afc6e6984406d9b3338e33edfd9439fc69 (patch)
treec2cd8180955f71b3567bf4e06dccac9843b9346f /Makefile
parent6436eca4faeb3ffa1c17179d24315634e5342e6d (diff)
downloadlz4-9bf331afc6e6984406d9b3338e33edfd9439fc69.zip
lz4-9bf331afc6e6984406d9b3338e33edfd9439fc69.tar.gz
lz4-9bf331afc6e6984406d9b3338e33edfd9439fc69.tar.bz2
new Travis CI build matrix
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 18 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index a46cb41..225b21c 100644
--- a/Makefile
+++ b/Makefile
@@ -89,6 +89,16 @@ NONTEXT = images/image00.png images/image01.png images/image02.png \
SOURCES = $(TEXT) $(NONTEXT)
+# Select test target for Travis CI's Build Matrix
+ifeq ($(LZ4_TRAVIS_CI_ENV),-dist)
+TRAVIS_TARGET=dist
+else ifeq ($(LZ4_TRAVIS_CI_ENV),-examples)
+TRAVIS_TARGET=examples
+else
+TRAVIS_TARGET=test-prg
+endif
+
+
default: liblz4
@cd $(PRGDIR); $(MAKE) -e
@@ -167,8 +177,14 @@ dist: clean
@echo Distribution $(DISTRIBNAME) built
test:
- make dist
- @cd examples; $(MAKE) -e $@
@cd $(PRGDIR); $(MAKE) -e $@
+test-travis: $(TRAVIS_TARGET)
+
+examples:
+ cd examples; $(MAKE) -e test
+
+test-prg:
+ @cd $(PRGDIR); $(MAKE) -e test-travis
+
endif