source: .github/workflows/ci.yml @ 19f5c94

Last change on this file since 19f5c94 was 6083ea9, checked in by / <>, at 2021-03-31T13:22:30Z

huh

  • Property mode set to 100644
File size: 3.9 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        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
[1fb3406]95    - name: jabber remove buddy
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.sh
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
[ef70f9f]139    - name: jabber go offline
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.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
[c05108c]172    - name: code coverage
[8d7cc55]173      if: ${{ always() }}
[c05108c]174      run: |
175        gcovr -r .
Note: See TracBrowser for help on using the repository browser.