source: .github/workflows/ci.yml @ 5bcaaa7

Last change on this file since 5bcaaa7 was 5bcaaa7, checked in by / <>, at 2021-03-26T12:09:33Z

does gcov still work?

  • Property mode set to 100644
File size: 1.1 KB
RevLine 
[90417ce]1name: CI
2
3on:
4  - pull_request
5  - push
6
7jobs:
8  tests:
9    runs-on: ubuntu-20.04
10
11    steps:
12    - uses: actions/checkout@v2
13    - name: Dependencies
14      run: |
15        sudo apt-get update -y
[c05108c]16        sudo apt-get install -y --no-install-recommends clang git make pkg-config libgnutls28-dev libgcrypt20-dev libglib2.0-dev prosody gcovr
[90417ce]17
18    - name: build bitlbee
19      run: |
[4b15a9a]20        ./configure \
[5bcaaa7]21           # --asan=1
[90417ce]22           # --events=glib \
23           # --ssl=gnutls \
24           # --doc=0 \
25           # --jabber=0 \
26           # --msn=0 \
27           # --oscar=0 \
28           # --twitter=0 \
29           # --yahoo=0
30
[3f783cf]31        cat ./.tests/gcovflags >> Makefile.settings
[90417ce]32        make
[9634fba]33        sudo make install
[d54f691]34        sudo BITLBEE_DEBUG=1 bitlbee -Dnv 2> ./debuglog &
[90417ce]35
[c05108c]36    - name: jabber test
[90417ce]37      run: |
[4d7b9a3]38        sudo ./.tests/setup.sh
39        python3 ./.tests/test1.py
[c05108c]40
[4b15a9a]41    - name: debug output
42      if: ${{ always() }}
43      run: |
[d54f691]44        less ./debuglog
45        if cat ./debuglog | grep -i -q error; then exit 1; fi
[4b15a9a]46
[c05108c]47    - name: code coverage
[8d7cc55]48      if: ${{ always() }}
[c05108c]49      run: |
50        gcovr -r .
Note: See TracBrowser for help on using the repository browser.