Line | |
---|
1 | name: CI |
---|
2 | |
---|
3 | on: |
---|
4 | - pull_request |
---|
5 | - push |
---|
6 | |
---|
7 | jobs: |
---|
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 |
---|
16 | sudo apt-get install -y --no-install-recommends clang git make pkg-config libgnutls28-dev libgcrypt20-dev libglib2.0-dev prosody gcovr |
---|
17 | |
---|
18 | - name: build bitlbee |
---|
19 | run: | |
---|
20 | ./configure \ |
---|
21 | --asan=1 |
---|
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 | |
---|
31 | cat ./.tests/gcovflags >> Makefile.settings |
---|
32 | make |
---|
33 | sudo make install |
---|
34 | sudo BITLBEE_DEBUG=1 bitlbee -Dnv 2> ./testlog & |
---|
35 | |
---|
36 | - name: jabber test |
---|
37 | run: | |
---|
38 | sudo ./.tests/setup.sh |
---|
39 | python3 ./.tests/test1.py |
---|
40 | |
---|
41 | - name: debug output |
---|
42 | if: ${{ always() }} |
---|
43 | run: | |
---|
44 | less ./testlog |
---|
45 | |
---|
46 | - name: code coverage |
---|
47 | if: ${{ always() }} |
---|
48 | run: | |
---|
49 | gcovr -r . |
---|
Note: See
TracBrowser
for help on using the repository browser.