Add Travis CI's Build Matrix

See also : http://docs.travis-ci.com/user/build-configuration/#The-Build-Matrix
This commit is contained in:
Takayuki MATSUOKA 2014-05-01 00:29:13 +09:00
parent 42cb61367a
commit dca4bc3595
2 changed files with 21 additions and 1 deletions

View File

@ -4,3 +4,10 @@ script: make test
before_install: before_install:
- sudo apt-get update -qq - sudo apt-get update -qq
- sudo apt-get install -qq gcc-multilib - sudo apt-get install -qq gcc-multilib
env:
- LZ4_TRAVIS_CI_ENV=-m32
- LZ4_TRAVIS_CI_ENV=-m64
matrix:
fast_finish: true

View File

@ -42,6 +42,15 @@ MANDIR=$(PREFIX)/share/man/man1
LZ4DIR=.. LZ4DIR=..
TEST_FILES = COPYING TEST_FILES = COPYING
TEST_TARGETS=test-32 test-64
# Minimize test target for Travis CI's Build Matrix
ifeq ($(LZ4_TRAVIS_CI_ENV),-m32)
TEST_TARGETS=test-32
else ifeq ($(LZ4_TRAVIS_CI_ENV),-m64)
TEST_TARGETS=test-64
endif
# Define *.exe as extension for Windows systems # Define *.exe as extension for Windows systems
ifneq (,$(filter Windows%,$(OS))) ifneq (,$(filter Windows%,$(OS)))
@ -106,7 +115,11 @@ uninstall:
[ -f $(DESTDIR)$(MANDIR)/lz4cat.1 ] && rm -f $(DESTDIR)$(MANDIR)/lz4cat.1 [ -f $(DESTDIR)$(MANDIR)/lz4cat.1 ] && rm -f $(DESTDIR)$(MANDIR)/lz4cat.1
@echo lz4 successfully uninstalled @echo lz4 successfully uninstalled
test: test-lz4 test-lz4c test-lz4c32 test-fullbench test-fullbench32 test-fuzzer test-fuzzer32 test: $(TEST_TARGETS)
test-32: test-lz4 test-lz4c32 test-fullbench32 test-fuzzer32
test-64: test-lz4 test-lz4c test-fullbench test-fuzzer
test-lz4: test-lz4: