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: ask for help |
---|
36 | run: | |
---|
37 | ./.tests/setup_bitlbee.sh |
---|
38 | |
---|
39 | python3 ./.tests/help.py |
---|
40 | |
---|
41 | ./.tests/cleanup_bitlbee.sh |
---|
42 | |
---|
43 | - name: jabber connect |
---|
44 | if: ${{ always() }} |
---|
45 | run: | |
---|
46 | ./.tests/setup_prosody.sh |
---|
47 | ./.tests/setup_bitlbee.sh |
---|
48 | |
---|
49 | python3 ./.tests/jabber_connect.py |
---|
50 | |
---|
51 | ./.tests/cleanup_bitlbee.sh |
---|
52 | ./.tests/cleanup_prosody.sh |
---|
53 | |
---|
54 | - name: jabber delete account |
---|
55 | if: ${{ always() }} |
---|
56 | run: | |
---|
57 | ./.tests/setup_prosody.sh |
---|
58 | ./.tests/setup_bitlbee.sh |
---|
59 | |
---|
60 | python3 ./.tests/jabber_delete_acc.py |
---|
61 | |
---|
62 | ./.tests/cleanup_bitlbee.sh |
---|
63 | ./.tests/cleanup_prosody.sh |
---|
64 | |
---|
65 | - name: jabber add buddy |
---|
66 | if: ${{ always() }} |
---|
67 | run: | |
---|
68 | ./.tests/setup_prosody.sh |
---|
69 | ./.tests/setup_bitlbee.sh |
---|
70 | |
---|
71 | python3 ./.tests/jabber_add_buddy.py |
---|
72 | |
---|
73 | ./.tests/cleanup_bitlbee.sh |
---|
74 | ./.tests/cleanup_prosody.sh |
---|
75 | |
---|
76 | - name: jabber remove buddy |
---|
77 | if: ${{ always() }} |
---|
78 | run: | |
---|
79 | ./.tests/setup_prosody.sh |
---|
80 | ./.tests/setup_bitlbee.sh |
---|
81 | |
---|
82 | python3 ./.tests/jabber_remove_buddy.py |
---|
83 | |
---|
84 | ./.tests/cleanup_bitlbee.sh |
---|
85 | ./.tests/cleanup_prosody.sh |
---|
86 | |
---|
87 | - name: jabber send message |
---|
88 | if: ${{ always() }} |
---|
89 | run: | |
---|
90 | ./.tests/setup_prosody.sh |
---|
91 | ./.tests/setup_bitlbee.sh |
---|
92 | |
---|
93 | python3 ./.tests/jabber_send_msg.py |
---|
94 | |
---|
95 | ./.tests/cleanup_bitlbee.sh |
---|
96 | ./.tests/cleanup_prosody.sh |
---|
97 | |
---|
98 | - name: jabber rename buddy |
---|
99 | if: ${{ always() }} |
---|
100 | run: | |
---|
101 | ./.tests/setup_prosody.sh |
---|
102 | ./.tests/setup_bitlbee.sh |
---|
103 | |
---|
104 | python3 ./.tests/jabber_rename_buddy.py |
---|
105 | |
---|
106 | ./.tests/cleanup_bitlbee.sh |
---|
107 | ./.tests/cleanup_prosody.sh |
---|
108 | |
---|
109 | - name: jabber set status |
---|
110 | if: ${{ always() }} |
---|
111 | run: | |
---|
112 | ./.tests/setup_prosody.sh |
---|
113 | ./.tests/setup_bitlbee.sh |
---|
114 | |
---|
115 | python3 ./.tests/jabber_status.py |
---|
116 | |
---|
117 | ./.tests/cleanup_bitlbee.sh |
---|
118 | ./.tests/cleanup_prosody.sh |
---|
119 | |
---|
120 | - name: jabber go offline |
---|
121 | if: ${{ always() }} |
---|
122 | run: | |
---|
123 | ./.tests/setup_prosody.sh |
---|
124 | ./.tests/setup_bitlbee.sh |
---|
125 | |
---|
126 | python3 ./.tests/jabber_offline.py |
---|
127 | |
---|
128 | ./.tests/cleanup_bitlbee.sh |
---|
129 | ./.tests/cleanup_prosody.sh |
---|
130 | |
---|
131 | - name: jabber change default target |
---|
132 | if: ${{ always() }} |
---|
133 | run: | |
---|
134 | ./.tests/setup_prosody.sh |
---|
135 | ./.tests/setup_bitlbee.sh |
---|
136 | |
---|
137 | python3 ./.tests/jabber_default_target.py |
---|
138 | |
---|
139 | ./.tests/cleanup_bitlbee.sh |
---|
140 | ./.tests/cleanup_prosody.sh |
---|
141 | |
---|
142 | - name: jabber block buddy |
---|
143 | if: ${{ always() }} |
---|
144 | run: | |
---|
145 | ./.tests/setup_prosody.sh |
---|
146 | ./.tests/setup_bitlbee.sh |
---|
147 | |
---|
148 | python3 ./.tests/jabber_block_buddy.py |
---|
149 | |
---|
150 | ./.tests/cleanup_bitlbee.sh |
---|
151 | ./.tests/cleanup_prosody.sh |
---|
152 | |
---|
153 | - name: code coverage |
---|
154 | if: ${{ always() }} |
---|
155 | run: | |
---|
156 | gcovr -r . |
---|