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

Last change on this file since 6313311 was 6313311, checked in by / <>, at 2021-03-31T12:02:52Z

less violence

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