File tree Expand file tree Collapse file tree 4 files changed +91
-0
lines changed Expand file tree Collapse file tree 4 files changed +91
-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 && sudo apt install -y devscripts dkpg-dev
36+ - name : build debian package
37+ run : |
38+ ./build-deb.sh
39+ sudo dpkg -i *.deb
40+ ls /usr/lib
41+
42+ # doc:
43+ # runs-on: ubuntu-latest
44+ #
45+ # steps:
46+ # - uses: actions/checkout@v2
47+ # - name: build doxygen documentation
48+ # run: sudo apt install -y doxygen
49+ #
50+ # - name: build doxygen documentation
51+ # run: |
52+ # rm -rf build || true
53+ # mkdir build
54+ # cd build
55+ # cmake .. -DLIBMBUS_BUILD_DOCS=ON
56+ # 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