source: .github/workflows/ci.yml @ 07ade22

Last change on this file since 07ade22 was 07ade22, checked in by / <>, at 2021-03-31T11:51:17Z

syntax

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