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

Last change on this file since bda5012 was bda5012, checked in by / <>, at 2021-03-31T12:57:23Z

wat

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