source: .github/workflows/ci.yml @ 21a328ab

Last change on this file since 21a328ab was 2378eca2, checked in by / <>, at 2021-03-31T15:22:49Z

oh come on

  • Property mode set to 100644
File size: 5.1 KB
RevLine 
[90417ce]1name: CI
2
3on:
4  - pull_request
5  - push
6
7jobs:
[30b5ca0]8  jabber:
[90417ce]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
[c05108c]16        sudo apt-get install -y --no-install-recommends clang git make pkg-config libgnutls28-dev libgcrypt20-dev libglib2.0-dev prosody gcovr
[50efbf4]17        sudo prosodyctl stop
[90417ce]18
19    - name: build bitlbee
20      run: |
[5d927631]21        ./configure --asan=1 --twitter=0
[3f783cf]22        cat ./.tests/gcovflags >> Makefile.settings
[90417ce]23        make
[9634fba]24        sudo make install
[03daea6]25        sudo make install-etc
[56a40d3]26
[c6c05ad]27        touch ./debuglog
[03daea6]28
29        sudo mkdir /var/lib/bitlbee
[4c1baa4]30        sudo chmod -R 777 /var/lib/bitlbee
[c6c05ad]31   
[2806b5e]32    - name: talk to bitlbee
[90417ce]33      run: |
[cb80802]34        ./.tests/setup_bitlbee.sh
[2806b5e]35
36        python3 ./.tests/talk_to_bitlbee.py
37
38        ./.tests/cleanup_bitlbee.sh
[ef70f9f]39   
[a181ec1]40    - name: ask for help
[ef70f9f]41      run: |
42        ./.tests/setup_bitlbee.sh
43
44        python3 ./.tests/help.py
45
46        ./.tests/cleanup_bitlbee.sh
[2806b5e]47
[b2d7fdd]48    - name: (un)register
[bc346a2]49      if: ${{ always() }}
[07ade22]50      run: |
[5d927631]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
[07ade22]57        python3 ./.tests/identify_nonexist.py
[5d927631]58
59        ./.tests/cleanup_bitlbee.sh
60        ./.tests/cleanup_prosody.sh
61
[6066443]62    - name: jabber connect
[ef70f9f]63      if: ${{ always() }}
[c2b9040]64      run: |
[c6c05ad]65        ./.tests/setup_prosody.sh
66        ./.tests/setup_bitlbee.sh
67
[c386390]68        python3 ./.tests/jabber_connect.py
[c05108c]69
[c6c05ad]70        ./.tests/cleanup_bitlbee.sh
71        ./.tests/cleanup_prosody.sh
[4b15a9a]72
[542b7d5]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
[e14bdc67]84    - name: jabber add buddy
[ef70f9f]85      if: ${{ always() }}
[e14bdc67]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
[7c2ecd6]95    - name: jabber remove buddy (leakage ok)
[1fb3406]96      if: ${{ always() }}
97      run: |
98        ./.tests/setup_prosody.sh
99        ./.tests/setup_bitlbee.sh
100
101        python3 ./.tests/jabber_remove_buddy.py
102
[7c2ecd6]103        ./.tests/cleanup_bitlbee_leakage_ok.sh
[1fb3406]104        ./.tests/cleanup_prosody.sh
105
[e14bdc67]106    - name: jabber send message
[ef70f9f]107      if: ${{ always() }}
[e14bdc67]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
[ef70f9f]118      if: ${{ always() }}
[e14bdc67]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
[ef70f9f]129      if: ${{ always() }}
[e14bdc67]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
[7c2ecd6]139    - name: jabber go offline (leakage ok)
[ef70f9f]140      if: ${{ always() }}
141      run: |
142        ./.tests/setup_prosody.sh
143        ./.tests/setup_bitlbee.sh
144
145        python3 ./.tests/jabber_offline.py
146
[7c2ecd6]147        ./.tests/cleanup_bitlbee_leakage_ok.sh
[ef70f9f]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
[c05108c]172    - name: code coverage
[8d7cc55]173      if: ${{ always() }}
[c05108c]174      run: |
175        gcovr -r .
[7c2ecd6]176
[2378eca2]177  known_bugs:
[7c2ecd6]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.