source: .github/workflows/ci.yml @ 4c1baa4

Last change on this file since 4c1baa4 was 4c1baa4, checked in by / <>, at 2021-03-31T12:04:05Z

medium

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