File tree Expand file tree Collapse file tree 4 files changed +92
-0
lines changed Expand file tree Collapse file tree 4 files changed +92
-0
lines changed Original file line number Diff line number Diff line change 11/_build
22/build
3+ .git
4+ .github
5+ Dockerfile *
Original file line number Diff line number Diff line change 1+ name : libmbus
2+
3+ on : [push, pull_request]
4+
5+ jobs :
6+ build :
7+ runs-on : ubuntu-latest
8+
9+ steps :
10+ - uses : actions/checkout@v2
11+ - name : build examples and tests
12+ run : |
13+ ./build.sh
14+ cd test && make
15+ cd ..
16+
17+ - name : generate test frames
18+ run : |
19+ PROG=test/mbus_parse_hex
20+ ./test/generate-xml.sh test/test-frames $PROG
21+ echo "NOTE: error-frames have about 30 parse errors, and unsupported-frames have 12"
22+ ./test/generate-xml.sh test/error-frames $PROG || true
23+ ./test/generate-xml.sh test/unsupported-frames $PROG || true
24+
25+ - name : install and run gcovr
26+ run : sudo pip install gcovr && gcovr .
27+
28+ debian :
29+ runs-on : ubuntu-latest
30+
31+ steps :
32+ - uses : actions/checkout@v2
33+ - name : install packages
34+ run : |
35+ sudo apt update -y
36+ sudo apt install -y debhelper devscripts dh-autoreconf dpkg-dev fakeroot
37+ - name : build debian package
38+ run : |
39+ ./build-deb.sh
40+ sudo dpkg -i ../*.deb
41+ ls /usr/lib
42+
43+ # doc:
44+ # runs-on: ubuntu-latest
45+ #
46+ # steps:
47+ # - uses: actions/checkout@v2
48+ # - name: build doxygen documentation
49+ # run: sudo apt install -y doxygen
50+ #
51+ # - name: build doxygen documentation
52+ # run: |
53+ # rm -rf build || true
54+ # mkdir build
55+ # cd build
56+ # cmake .. -DLIBMBUS_BUILD_DOCS=ON
57+ # cmake --build . --target doc
Original file line number Diff line number Diff line change 1+ # docker build . -f Dockerfile.deb -t deb_builder
2+
3+ FROM ubuntu
4+
5+ RUN apt update -y && apt install -y gcc g++ make && \
6+ apt-get install -y autoconf libtool
7+ # What package is debuild
8+ RUN apt-get install -y gnupg dput dh-make devscripts lintian
9+ COPY . /tmp
10+ RUN cd /tmp && \
11+ ./build-deb.sh && \
12+ ls -al . .. && \
13+ cd .. && \
14+ dpkg -i *.deb || true
Original file line number Diff line number Diff line change 1+ # docker build . -f Dockerfile.test -t test_builder
2+
3+ FROM ubuntu
4+
5+ RUN apt update -y && \
6+ apt install -y gcc g++ make && \
7+ apt-get install -y autoconf libtoolw
8+ COPY . /tmp
9+ RUN cd /tmp && \
10+ ./build.sh && \
11+ cd test && \
12+ make && \
13+ ./generate-xml.sh test-frames/ ./mbus_parse_hex
14+
15+ RUN cd /tmp && \
16+ echo "NOTE: error-frames have about 30 parse errors, and unsupported-frames have 12" && \
17+ ./test/generate-xml.sh test/error-frames || true ; \
18+ ./test/generate-xml.sh test/unsupported-frames || true
You can’t perform that action at this time.
0 commit comments