Added Travis-ci autobuild and test support.

pull/5/head
weetmuts 2018-01-05 17:46:10 +01:00
rodzic 0f9edf9620
commit 4c740cc394
3 zmienionych plików z 11 dodań i 3 usunięć

1
.travis.yml 100644
Wyświetl plik

@ -0,0 +1 @@
language: cpp

Wyświetl plik

@ -27,7 +27,7 @@ endif
$(shell mkdir -p $(BUILD))
CXXFLAGS := $(DEBUG_FLAGS) -Wall -fmessage-length=0 -std=c++11 -Wno-unused-function "-DWMBUSMETERS_VERSION=\"0.2\""
CXXFLAGS := $(DEBUG_FLAGS) -Wall -fmessage-length=0 -std=c++11 -Wno-unused-function "-DWMBUSMETERS_VERSION=\"0.2\""
$(BUILD)/%.o: %.cc $(wildcard %.h)
$(CXX) $(CXXFLAGS) $< -c -o $@
@ -53,14 +53,17 @@ $(BUILD)/wmbusmeters: $(METERS_OBJS)
clean:
rm -f build/* build_arm/* build_debug/* build_arm_debug/* *~
test:
@echo No tests yet.
update_manufacturers:
wget http://www.m-bus.de/man.html
echo '// Data downloaded from http://www.m-bus.de/man.html' > m.h
echo -n '// ' >> m.h
date --rfc-3339=date >> m.h
echo >> m.h
echo '#ifndef MANUFACTURERS_H' >> m.h
echo '#define MANUFACTURERS_H' >> m.h
echo '#ifndef MANUFACTURERS_H' >> m.h
echo '#define MANUFACTURERS_H' >> m.h
echo '#define MANFCODE(a,b,c) ((a-64)*1024+(b-64)*32+(c-64))' >> m.h
echo '#define LIST_OF_MANUFACTURERS \' >> m.h
cat man.html | tr -d '\r\n' | sed \

4
configure vendored 100755
Wyświetl plik

@ -0,0 +1,4 @@
#!/bin/sh
echo Nothing here yet!
echo "Run 'make'"
echo "or 'make HOST=arm'"