source: .github/workflows/ci.yml @ 5d927631

Last change on this file since 5d927631 was 5d927631, checked in by / <>, at 2021-03-31T11:50:18Z

register

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