source: .github/workflows/ci.yml @ 4c1baa4

Last change on this file since 4c1baa4 was 4c1baa4, checked in by / <>, at 2021-03-31T12:04:05Z

medium

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