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
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
26        touch ./debuglog
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/
30   
31    - name: talk to bitlbee
32      run: |
33        ./.tests/setup_bitlbee.sh
34
35        python3 ./.tests/talk_to_bitlbee.py
36
37        ./.tests/cleanup_bitlbee.sh
38   
39    - name: ask for help
40      run: |
41        ./.tests/setup_bitlbee.sh
42
43        python3 ./.tests/help.py
44
45        ./.tests/cleanup_bitlbee.sh
46
47    - name: (un)register
48      run: |
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       
63        python3 ./.tests/identify_nonexist.py
64
65        ./.tests/cleanup_bitlbee.sh
66        ./.tests/cleanup_prosody.sh
67
68    - name: jabber connect
69      if: ${{ always() }}
70      run: |
71        ./.tests/setup_prosody.sh
72        ./.tests/setup_bitlbee.sh
73
74        python3 ./.tests/jabber_connect.py
75
76        ./.tests/cleanup_bitlbee.sh
77        ./.tests/cleanup_prosody.sh
78
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
90    - name: jabber add buddy
91      if: ${{ always() }}
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
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
112    - name: jabber send message
113      if: ${{ always() }}
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
124      if: ${{ always() }}
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
135      if: ${{ always() }}
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
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
178    - name: code coverage
179      if: ${{ always() }}
180      run: |
181        gcovr -r .
Note: See TracBrowser for help on using the repository browser.