source: .github/workflows/ci.yml @ bc346a2

Last change on this file since bc346a2 was bc346a2, checked in by / <>, at 2021-03-31T13:09:17Z

ugggh

  • Property mode set to 100644
File size: 4.3 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
[bda5012]48    - name: 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
56        ./.tests/cleanup_bitlbee.sh
57        ./.tests/setup_bitlbee.sh
58
59        python3 ./.tests/identify.py
[bda5012]60
61        ./.tests/cleanup_bitlbee.sh
62        ./.tests/cleanup_prosody.sh
63
64    - name: unregister
[bc346a2]65      if: ${{ always() }}
[bda5012]66      run: |
67        ./.tests/setup_prosody.sh
68        ./.tests/setup_bitlbee.sh
69
[5d927631]70        python3 ./.tests/unregister.py
71
72        ./.tests/cleanup_bitlbee.sh
73        ./.tests/setup_bitlbee.sh
74       
[07ade22]75        python3 ./.tests/identify_nonexist.py
[5d927631]76
77        ./.tests/cleanup_bitlbee.sh
78        ./.tests/cleanup_prosody.sh
79
[6066443]80    - name: jabber connect
[ef70f9f]81      if: ${{ always() }}
[c2b9040]82      run: |
[c6c05ad]83        ./.tests/setup_prosody.sh
84        ./.tests/setup_bitlbee.sh
85
[c386390]86        python3 ./.tests/jabber_connect.py
[c05108c]87
[c6c05ad]88        ./.tests/cleanup_bitlbee.sh
89        ./.tests/cleanup_prosody.sh
[4b15a9a]90
[542b7d5]91    - name: jabber delete account
92      if: ${{ always() }}
93      run: |
94        ./.tests/setup_prosody.sh
95        ./.tests/setup_bitlbee.sh
96
97        python3 ./.tests/jabber_delete_acc.py
98
99        ./.tests/cleanup_bitlbee.sh
100        ./.tests/cleanup_prosody.sh
101
[e14bdc67]102    - name: jabber add buddy
[ef70f9f]103      if: ${{ always() }}
[e14bdc67]104      run: |
105        ./.tests/setup_prosody.sh
106        ./.tests/setup_bitlbee.sh
107
108        python3 ./.tests/jabber_add_buddy.py
109
110        ./.tests/cleanup_bitlbee.sh
111        ./.tests/cleanup_prosody.sh
112
[1fb3406]113    - name: jabber remove buddy
114      if: ${{ always() }}
115      run: |
116        ./.tests/setup_prosody.sh
117        ./.tests/setup_bitlbee.sh
118
119        python3 ./.tests/jabber_remove_buddy.py
120
121        ./.tests/cleanup_bitlbee.sh
122        ./.tests/cleanup_prosody.sh
123
[e14bdc67]124    - name: jabber send message
[ef70f9f]125      if: ${{ always() }}
[e14bdc67]126      run: |
127        ./.tests/setup_prosody.sh
128        ./.tests/setup_bitlbee.sh
129
130        python3 ./.tests/jabber_send_msg.py
131
132        ./.tests/cleanup_bitlbee.sh
133        ./.tests/cleanup_prosody.sh
134
135    - name: jabber rename buddy
[ef70f9f]136      if: ${{ always() }}
[e14bdc67]137      run: |
138        ./.tests/setup_prosody.sh
139        ./.tests/setup_bitlbee.sh
140
141        python3 ./.tests/jabber_rename_buddy.py
142
143        ./.tests/cleanup_bitlbee.sh
144        ./.tests/cleanup_prosody.sh
145
146    - name: jabber set status
[ef70f9f]147      if: ${{ always() }}
[e14bdc67]148      run: |
149        ./.tests/setup_prosody.sh
150        ./.tests/setup_bitlbee.sh
151
152        python3 ./.tests/jabber_status.py
153
154        ./.tests/cleanup_bitlbee.sh
155        ./.tests/cleanup_prosody.sh
156
[ef70f9f]157    - name: jabber go offline
158      if: ${{ always() }}
159      run: |
160        ./.tests/setup_prosody.sh
161        ./.tests/setup_bitlbee.sh
162
163        python3 ./.tests/jabber_offline.py
164
165        ./.tests/cleanup_bitlbee.sh
166        ./.tests/cleanup_prosody.sh
167
168    - name: jabber change default target
169      if: ${{ always() }}
170      run: |
171        ./.tests/setup_prosody.sh
172        ./.tests/setup_bitlbee.sh
173
174        python3 ./.tests/jabber_default_target.py
175
176        ./.tests/cleanup_bitlbee.sh
177        ./.tests/cleanup_prosody.sh
178
179    - name: jabber block buddy
180      if: ${{ always() }}
181      run: |
182        ./.tests/setup_prosody.sh
183        ./.tests/setup_bitlbee.sh
184
185        python3 ./.tests/jabber_block_buddy.py
186
187        ./.tests/cleanup_bitlbee.sh
188        ./.tests/cleanup_prosody.sh
189
[c05108c]190    - name: code coverage
[8d7cc55]191      if: ${{ always() }}
[c05108c]192      run: |
193        gcovr -r .
Note: See TracBrowser for help on using the repository browser.