1 | name: CI |
---|
2 | |
---|
3 | on: |
---|
4 | - pull_request |
---|
5 | - push |
---|
6 | |
---|
7 | jobs: |
---|
8 | general/jabber: |
---|
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 --twitter=0 |
---|
22 | cat ./.tests/gcovflags >> Makefile.settings |
---|
23 | make |
---|
24 | sudo make install |
---|
25 | sudo make install-etc |
---|
26 | |
---|
27 | touch ./debuglog |
---|
28 | |
---|
29 | sudo mkdir /var/lib/bitlbee |
---|
30 | sudo chmod -R 777 /var/lib/bitlbee |
---|
31 | |
---|
32 | - name: talk to bitlbee |
---|
33 | run: | |
---|
34 | ./.tests/setup_bitlbee.sh |
---|
35 | |
---|
36 | python3 ./.tests/talk_to_bitlbee.py |
---|
37 | |
---|
38 | ./.tests/cleanup_bitlbee.sh |
---|
39 | |
---|
40 | - name: ask for help |
---|
41 | run: | |
---|
42 | ./.tests/setup_bitlbee.sh |
---|
43 | |
---|
44 | python3 ./.tests/help.py |
---|
45 | |
---|
46 | ./.tests/cleanup_bitlbee.sh |
---|
47 | |
---|
48 | - name: (un)register |
---|
49 | run: | |
---|
50 | ./.tests/setup_prosody.sh |
---|
51 | ./.tests/setup_bitlbee.sh |
---|
52 | |
---|
53 | python3 ./.tests/register.py |
---|
54 | |
---|
55 | ./.tests/cleanup_bitlbee.sh |
---|
56 | ./.tests/setup_bitlbee.sh |
---|
57 | |
---|
58 | python3 ./.tests/identify.py |
---|
59 | python3 ./.tests/unregister.py |
---|
60 | |
---|
61 | ./.tests/cleanup_bitlbee.sh |
---|
62 | ./.tests/setup_bitlbee.sh |
---|
63 | |
---|
64 | python3 ./.tests/identify_nonexist.py |
---|
65 | |
---|
66 | ./.tests/cleanup_bitlbee.sh |
---|
67 | ./.tests/cleanup_prosody.sh |
---|
68 | |
---|
69 | - name: jabber connect |
---|
70 | if: ${{ always() }} |
---|
71 | run: | |
---|
72 | ./.tests/setup_prosody.sh |
---|
73 | ./.tests/setup_bitlbee.sh |
---|
74 | |
---|
75 | python3 ./.tests/jabber_connect.py |
---|
76 | |
---|
77 | ./.tests/cleanup_bitlbee.sh |
---|
78 | ./.tests/cleanup_prosody.sh |
---|
79 | |
---|
80 | - name: jabber delete account |
---|
81 | if: ${{ always() }} |
---|
82 | run: | |
---|
83 | ./.tests/setup_prosody.sh |
---|
84 | ./.tests/setup_bitlbee.sh |
---|
85 | |
---|
86 | python3 ./.tests/jabber_delete_acc.py |
---|
87 | |
---|
88 | ./.tests/cleanup_bitlbee.sh |
---|
89 | ./.tests/cleanup_prosody.sh |
---|
90 | |
---|
91 | - name: jabber add buddy |
---|
92 | if: ${{ always() }} |
---|
93 | run: | |
---|
94 | ./.tests/setup_prosody.sh |
---|
95 | ./.tests/setup_bitlbee.sh |
---|
96 | |
---|
97 | python3 ./.tests/jabber_add_buddy.py |
---|
98 | |
---|
99 | ./.tests/cleanup_bitlbee.sh |
---|
100 | ./.tests/cleanup_prosody.sh |
---|
101 | |
---|
102 | - name: jabber remove buddy |
---|
103 | if: ${{ always() }} |
---|
104 | run: | |
---|
105 | ./.tests/setup_prosody.sh |
---|
106 | ./.tests/setup_bitlbee.sh |
---|
107 | |
---|
108 | python3 ./.tests/jabber_remove_buddy.py |
---|
109 | |
---|
110 | ./.tests/cleanup_bitlbee.sh |
---|
111 | ./.tests/cleanup_prosody.sh |
---|
112 | |
---|
113 | - name: jabber send message |
---|
114 | if: ${{ always() }} |
---|
115 | run: | |
---|
116 | ./.tests/setup_prosody.sh |
---|
117 | ./.tests/setup_bitlbee.sh |
---|
118 | |
---|
119 | python3 ./.tests/jabber_send_msg.py |
---|
120 | |
---|
121 | ./.tests/cleanup_bitlbee.sh |
---|
122 | ./.tests/cleanup_prosody.sh |
---|
123 | |
---|
124 | - name: jabber rename buddy |
---|
125 | if: ${{ always() }} |
---|
126 | run: | |
---|
127 | ./.tests/setup_prosody.sh |
---|
128 | ./.tests/setup_bitlbee.sh |
---|
129 | |
---|
130 | python3 ./.tests/jabber_rename_buddy.py |
---|
131 | |
---|
132 | ./.tests/cleanup_bitlbee.sh |
---|
133 | ./.tests/cleanup_prosody.sh |
---|
134 | |
---|
135 | - name: jabber set status |
---|
136 | if: ${{ always() }} |
---|
137 | run: | |
---|
138 | ./.tests/setup_prosody.sh |
---|
139 | ./.tests/setup_bitlbee.sh |
---|
140 | |
---|
141 | python3 ./.tests/jabber_status.py |
---|
142 | |
---|
143 | ./.tests/cleanup_bitlbee.sh |
---|
144 | ./.tests/cleanup_prosody.sh |
---|
145 | |
---|
146 | - name: jabber go offline |
---|
147 | if: ${{ always() }} |
---|
148 | run: | |
---|
149 | ./.tests/setup_prosody.sh |
---|
150 | ./.tests/setup_bitlbee.sh |
---|
151 | |
---|
152 | python3 ./.tests/jabber_offline.py |
---|
153 | |
---|
154 | ./.tests/cleanup_bitlbee.sh |
---|
155 | ./.tests/cleanup_prosody.sh |
---|
156 | |
---|
157 | - name: jabber change default target |
---|
158 | if: ${{ always() }} |
---|
159 | run: | |
---|
160 | ./.tests/setup_prosody.sh |
---|
161 | ./.tests/setup_bitlbee.sh |
---|
162 | |
---|
163 | python3 ./.tests/jabber_default_target.py |
---|
164 | |
---|
165 | ./.tests/cleanup_bitlbee.sh |
---|
166 | ./.tests/cleanup_prosody.sh |
---|
167 | |
---|
168 | - name: jabber block buddy |
---|
169 | if: ${{ always() }} |
---|
170 | run: | |
---|
171 | ./.tests/setup_prosody.sh |
---|
172 | ./.tests/setup_bitlbee.sh |
---|
173 | |
---|
174 | python3 ./.tests/jabber_block_buddy.py |
---|
175 | |
---|
176 | ./.tests/cleanup_bitlbee.sh |
---|
177 | ./.tests/cleanup_prosody.sh |
---|
178 | |
---|
179 | - name: code coverage |
---|
180 | if: ${{ always() }} |
---|
181 | run: | |
---|
182 | gcovr -r . |
---|