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
Line 
1name: CI
2
3on:
4  - pull_request
5  - push
6
7jobs:
8  jabber:
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
16        sudo apt-get install -y --no-install-recommends clang git make pkg-config libgnutls28-dev libgcrypt20-dev libglib2.0-dev prosody gcovr
17        sudo prosodyctl stop
18
19    - name: build bitlbee
20      run: |
21        ./configure --asan=1 --twitter=0
22        cat ./.tests/gcovflags >> Makefile.settings
23        make
24        sudo make install
25        sudo make install-etc
26
27        touch ./debuglog
28
29        sudo mkdir /var/lib/bitlbee
30        sudo chmod -R 777 /var/lib/bitlbee
31   
32    - name: talk to bitlbee
33      run: |
34        ./.tests/setup_bitlbee.sh
35
36        python3 ./.tests/talk_to_bitlbee.py
37
38        ./.tests/cleanup_bitlbee.sh
39   
40    - name: ask for help
41      run: |
42        ./.tests/setup_bitlbee.sh
43
44        python3 ./.tests/help.py
45
46        ./.tests/cleanup_bitlbee.sh
47
48    - name: register
49      run: |
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
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
68        python3 ./.tests/unregister.py
69
70        ./.tests/cleanup_bitlbee.sh
71        ./.tests/setup_bitlbee.sh
72       
73        python3 ./.tests/identify_nonexist.py
74
75        ./.tests/cleanup_bitlbee.sh
76        ./.tests/cleanup_prosody.sh
77
78    - name: jabber connect
79      if: ${{ always() }}
80      run: |
81        ./.tests/setup_prosody.sh
82        ./.tests/setup_bitlbee.sh
83
84        python3 ./.tests/jabber_connect.py
85
86        ./.tests/cleanup_bitlbee.sh
87        ./.tests/cleanup_prosody.sh
88
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
100    - name: jabber add buddy
101      if: ${{ always() }}
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
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
122    - name: jabber send message
123      if: ${{ always() }}
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
134      if: ${{ always() }}
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
145      if: ${{ always() }}
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
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
188    - name: code coverage
189      if: ${{ always() }}
190      run: |
191        gcovr -r .
Note: See TracBrowser for help on using the repository browser.