This repository was archived by the owner on Nov 17, 2022. It is now read-only.
File tree 2 files changed +13
-3
lines changed
2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 22
22
23
23
language : cpp
24
24
25
+ before_install :
26
+ - sudo pip install cpp-coveralls
27
+
25
28
compiler :
26
29
- clang
27
30
- gcc
28
31
29
- script : make && make test
32
+ script :
33
+ make && make test && make gcov
34
+
35
+ after_success :
36
+ - coveralls --exclude lib --exclude tests --gcov-options '\-lp'
Original file line number Diff line number Diff line change @@ -33,8 +33,8 @@ SOURCES := $(shell find $(SRCDIR) -type f -name "*.$(SRCEXT)")
33
33
OBJECTS := $(patsubst $(SRCDIR ) /% ,$(BUILDDIR ) /% ,$(SOURCES:.$(SRCEXT ) =.o ) )
34
34
TESTSOURCES := $(shell find $(TESTDIR ) -type f -name "* .$(SRCEXT ) ")
35
35
TESTOBJECTS := $(patsubst $(TESTDIR ) /% ,$(BUILDDIR ) /$(TESTDIR ) /% ,$(TESTSOURCES:.$(SRCEXT ) =.o ) )
36
- CFLAGS := -g -Wall -pedantic -std=c++11
37
- CXXFLAGS := $( CFLAGS )
36
+ CFLAGS := -g -Wall -pedantic -std=c1x
37
+ CXXFLAGS := -g -Wall -pedantic -std=c++0x
38
38
LDFLAGS :=
39
39
INC := -I include
40
40
@@ -61,6 +61,9 @@ $(BUILDDIR)/$(TESTDIR)/%.o: $(TESTDIR)/%.$(SRCEXT)
61
61
@mkdir -p $(dir $@ )
62
62
$(CXX ) $(CXXFLAGS ) $(INC ) -c -o $@ $<
63
63
64
+ gcov : clean
65
+ $(MAKE ) CXXFLAGS=" $( CXXFLAGS) -g -O0 --coverage" LDFLAGS=" -lgcov" all test
66
+
64
67
# make clean
65
68
.PHONY : clean
66
69
clean :
You can’t perform that action at this time.
0 commit comments