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 | sudo prosodyctl stop |
---|
18 | |
---|
19 | - name: build bitlbee |
---|
20 | run: | |
---|
21 | ./configure --asan=1 |
---|
22 | cat ./.tests/gcovflags >> Makefile.settings |
---|
23 | make |
---|
24 | sudo make install |
---|
25 | touch ./debuglog |
---|
26 | |
---|
27 | - name: talk to bitlbee |
---|
28 | run: | |
---|
29 | ./.tests/setup_bitlbee.sh |
---|
30 | |
---|
31 | python3 ./.tests/talk_to_bitlbee.py |
---|
32 | |
---|
33 | ./.tests/cleanup_bitlbee.sh |
---|
34 | |
---|
35 | - name: jabber connect |
---|
36 | run: | |
---|
37 | ./.tests/setup_prosody.sh |
---|
38 | ./.tests/setup_bitlbee.sh |
---|
39 | |
---|
40 | python3 ./.tests/jabber_connect.py |
---|
41 | |
---|
42 | ./.tests/cleanup_bitlbee.sh |
---|
43 | ./.tests/cleanup_prosody.sh |
---|
44 | |
---|
45 | - name: jabber add buddy |
---|
46 | run: | |
---|
47 | ./.tests/setup_prosody.sh |
---|
48 | ./.tests/setup_bitlbee.sh |
---|
49 | |
---|
50 | python3 ./.tests/jabber_add_buddy.py |
---|
51 | |
---|
52 | ./.tests/cleanup_bitlbee.sh |
---|
53 | ./.tests/cleanup_prosody.sh |
---|
54 | |
---|
55 | - name: jabber send message |
---|
56 | run: | |
---|
57 | ./.tests/setup_prosody.sh |
---|
58 | ./.tests/setup_bitlbee.sh |
---|
59 | |
---|
60 | python3 ./.tests/jabber_send_msg.py |
---|
61 | |
---|
62 | ./.tests/cleanup_bitlbee.sh |
---|
63 | ./.tests/cleanup_prosody.sh |
---|
64 | |
---|
65 | - name: jabber rename buddy |
---|
66 | run: | |
---|
67 | ./.tests/setup_prosody.sh |
---|
68 | ./.tests/setup_bitlbee.sh |
---|
69 | |
---|
70 | python3 ./.tests/jabber_rename_buddy.py |
---|
71 | |
---|
72 | ./.tests/cleanup_bitlbee.sh |
---|
73 | ./.tests/cleanup_prosody.sh |
---|
74 | |
---|
75 | - name: jabber set status |
---|
76 | run: | |
---|
77 | ./.tests/setup_prosody.sh |
---|
78 | ./.tests/setup_bitlbee.sh |
---|
79 | |
---|
80 | python3 ./.tests/jabber_status.py |
---|
81 | |
---|
82 | ./.tests/cleanup_bitlbee.sh |
---|
83 | ./.tests/cleanup_prosody.sh |
---|
84 | |
---|
85 | - name: code coverage |
---|
86 | if: ${{ always() }} |
---|
87 | run: | |
---|
88 | gcovr -r . |
---|