From 09647e2b29660b61fc00bbdede190a36dfb22e68 Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Sun, 9 Feb 2014 00:05:19 +0000 Subject: Add scripts for Travis CI git-svn-id: http://pugixml.googlecode.com/svn/trunk@969 99668b35-9821-0410-8761-19e4c4f06640 --- tests/Makefile.travis | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tests/Makefile.travis (limited to 'tests') diff --git a/tests/Makefile.travis b/tests/Makefile.travis new file mode 100644 index 0000000..02f22e7 --- /dev/null +++ b/tests/Makefile.travis @@ -0,0 +1,24 @@ +CXXFLAGS=-c -Wall -Wextra -Werror -pedantic + +BUILD=build/travis + +SOURCES=src/pugixml.cpp $(wildcard tests/*.cpp) +OBJECTS=$(SOURCES:%=$(BUILD)/%.o) +EXECUTABLE=$(BUILD)/test + +all: $(EXECUTABLE) + +test: $(EXECUTABLE) + ./$(EXECUTABLE) + +$(EXECUTABLE): $(OBJECTS) + $(CXX) $(OBJECTS) $(LDFLAGS) -o $@ + +$(BUILD)/%.cpp.o: %.cpp + mkdir -p $(dir $@) + $(CXX) $(CXXFLAGS) $< -o $@ + +clean: + rm -rf $(BUILD) + +.PHONY: all test clean \ No newline at end of file -- cgit v1.2.3