source: .github/workflows/ci.yml @ 7c2ecd6

Last change on this file since 7c2ecd6 was 7c2ecd6, checked in by / <>, at 2021-03-31T15:22:10Z

known bugs seperate job

  • Property mode set to 100644
File size: 5.1 KB
Line 
1name: CI
2
3on:
4  - pull_request
5  - push
6
7jobs:
8  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      if: ${{ always() }}
50      run: |
51        ./.tests/setup_prosody.sh
52        ./.tests/setup_bitlbee.sh
53
54        python3 ./.tests/register.py
55        python3 ./.tests/identify.py
56        python3 ./.tests/unregister.py
57        python3 ./.tests/identify_nonexist.py
58
59        ./.tests/cleanup_bitlbee.sh
60        ./.tests/cleanup_prosody.sh
61
62    - name: jabber connect
63      if: ${{ always() }}
64      run: |
65        ./.tests/setup_prosody.sh
66        ./.tests/setup_bitlbee.sh
67
68        python3 ./.tests/jabber_connect.py
69
70        ./.tests/cleanup_bitlbee.sh
71        ./.tests/cleanup_prosody.sh
72
73    - name: jabber delete account
74      if: ${{ always() }}
75      run: |
76        ./.tests/setup_prosody.sh
77        ./.tests/setup_bitlbee.sh
78
79        python3 ./.tests/jabber_delete_acc.py
80
81        ./.tests/cleanup_bitlbee.sh
82        ./.tests/cleanup_prosody.sh
83
84    - name: jabber add buddy
85      if: ${{ always() }}
86      run: |
87        ./.tests/setup_prosody.sh
88        ./.tests/setup_bitlbee.sh
89
90        python3 ./.tests/jabber_add_buddy.py
91
92        ./.tests/cleanup_bitlbee.sh
93        ./.tests/cleanup_prosody.sh
94
95    - name: jabber remove buddy (leakage ok)
96      if: ${{ always() }}
97      run: |
98        ./.tests/setup_prosody.sh
99        ./.tests/setup_bitlbee.sh
100
101        python3 ./.tests/jabber_remove_buddy.py
102
103        ./.tests/cleanup_bitlbee_leakage_ok.sh
104        ./.tests/cleanup_prosody.sh
105
106    - name: jabber send message
107      if: ${{ always() }}
108      run: |
109        ./.tests/setup_prosody.sh
110        ./.tests/setup_bitlbee.sh
111
112        python3 ./.tests/jabber_send_msg.py
113
114        ./.tests/cleanup_bitlbee.sh
115        ./.tests/cleanup_prosody.sh
116
117    - name: jabber rename buddy
118      if: ${{ always() }}
119      run: |
120        ./.tests/setup_prosody.sh
121        ./.tests/setup_bitlbee.sh
122
123        python3 ./.tests/jabber_rename_buddy.py
124
125        ./.tests/cleanup_bitlbee.sh
126        ./.tests/cleanup_prosody.sh
127
128    - name: jabber set status
129      if: ${{ always() }}
130      run: |
131        ./.tests/setup_prosody.sh
132        ./.tests/setup_bitlbee.sh
133
134        python3 ./.tests/jabber_status.py
135
136        ./.tests/cleanup_bitlbee.sh
137        ./.tests/cleanup_prosody.sh
138
139    - name: jabber go offline (leakage ok)
140      if: ${{ always() }}
141      run: |
142        ./.tests/setup_prosody.sh
143        ./.tests/setup_bitlbee.sh
144
145        python3 ./.tests/jabber_offline.py
146
147        ./.tests/cleanup_bitlbee_leakage_ok.sh
148        ./.tests/cleanup_prosody.sh
149
150    - name: jabber change default target
151      if: ${{ always() }}
152      run: |
153        ./.tests/setup_prosody.sh
154        ./.tests/setup_bitlbee.sh
155
156        python3 ./.tests/jabber_default_target.py
157
158        ./.tests/cleanup_bitlbee.sh
159        ./.tests/cleanup_prosody.sh
160
161    - name: jabber block buddy
162      if: ${{ always() }}
163      run: |
164        ./.tests/setup_prosody.sh
165        ./.tests/setup_bitlbee.sh
166
167        python3 ./.tests/jabber_block_buddy.py
168
169        ./.tests/cleanup_bitlbee.sh
170        ./.tests/cleanup_prosody.sh
171
172    - name: code coverage
173      if: ${{ always() }}
174      run: |
175        gcovr -r .
176
177  known bugs:
178    runs-on: ubuntu-20.04
179
180    steps:
181    - uses: actions/checkout@v2
182    - name: Dependencies
183      run: |
184        sudo apt-get update -y
185        sudo apt-get install -y --no-install-recommends clang git make pkg-config libgnutls28-dev libgcrypt20-dev libglib2.0-dev prosody gcovr
186        sudo prosodyctl stop
187
188    - name: build bitlbee
189      run: |
190        ./configure --asan=1 --twitter=0
191        cat ./.tests/gcovflags >> Makefile.settings
192        make
193        sudo make install
194        sudo make install-etc
195
196        touch ./debuglog
197
198        sudo mkdir /var/lib/bitlbee
199        sudo chmod -R 777 /var/lib/bitlbee
200
201    - name: jabber remove buddy (leakage ok)
202      if: ${{ always() }}
203      run: |
204        ./.tests/setup_prosody.sh
205        ./.tests/setup_bitlbee.sh
206
207        python3 ./.tests/jabber_remove_buddy.py
208
209        ./.tests/cleanup_bitlbee.sh
210        ./.tests/cleanup_prosody.sh
211
212    - name: jabber go offline
213      if: ${{ always() }}
214      run: |
215        ./.tests/setup_prosody.sh
216        ./.tests/setup_bitlbee.sh
217
218        python3 ./.tests/jabber_offline.py
219
220        ./.tests/cleanup_bitlbee.sh
221        ./.tests/cleanup_prosody.sh
Note: See TracBrowser for help on using the repository browser.