source: .github/workflows/ci.yml @ a181ec1

Last change on this file since a181ec1 was a181ec1, checked in by / <>, at 2021-03-29T14:09:12Z

blcok mayb

  • Property mode set to 100644
File size: 2.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
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: jabber connect
44      if: ${{ always() }}
45      run: |
46        ./.tests/setup_prosody.sh
47        ./.tests/setup_bitlbee.sh
48
49        python3 ./.tests/jabber_connect.py
50
51        ./.tests/cleanup_bitlbee.sh
52        ./.tests/cleanup_prosody.sh
53
54    - name: jabber add buddy
55      if: ${{ always() }}
56      run: |
57        ./.tests/setup_prosody.sh
58        ./.tests/setup_bitlbee.sh
59
60        python3 ./.tests/jabber_add_buddy.py
61
62        ./.tests/cleanup_bitlbee.sh
63        ./.tests/cleanup_prosody.sh
64
65    - name: jabber send message
66      if: ${{ always() }}
67      run: |
68        ./.tests/setup_prosody.sh
69        ./.tests/setup_bitlbee.sh
70
71        python3 ./.tests/jabber_send_msg.py
72
73        ./.tests/cleanup_bitlbee.sh
74        ./.tests/cleanup_prosody.sh
75
76    - name: jabber rename buddy
77      if: ${{ always() }}
78      run: |
79        ./.tests/setup_prosody.sh
80        ./.tests/setup_bitlbee.sh
81
82        python3 ./.tests/jabber_rename_buddy.py
83
84        ./.tests/cleanup_bitlbee.sh
85        ./.tests/cleanup_prosody.sh
86
87    - name: jabber set status
88      if: ${{ always() }}
89      run: |
90        ./.tests/setup_prosody.sh
91        ./.tests/setup_bitlbee.sh
92
93        python3 ./.tests/jabber_status.py
94
95        ./.tests/cleanup_bitlbee.sh
96        ./.tests/cleanup_prosody.sh
97
98    - name: jabber go offline
99      if: ${{ always() }}
100      run: |
101        ./.tests/setup_prosody.sh
102        ./.tests/setup_bitlbee.sh
103
104        python3 ./.tests/jabber_offline.py
105
106        ./.tests/cleanup_bitlbee.sh
107        ./.tests/cleanup_prosody.sh
108
109    - name: jabber change default target
110      if: ${{ always() }}
111      run: |
112        ./.tests/setup_prosody.sh
113        ./.tests/setup_bitlbee.sh
114
115        python3 ./.tests/jabber_default_target.py
116
117        ./.tests/cleanup_bitlbee.sh
118        ./.tests/cleanup_prosody.sh
119
120    - name: jabber block buddy
121      if: ${{ always() }}
122      run: |
123        ./.tests/setup_prosody.sh
124        ./.tests/setup_bitlbee.sh
125
126        python3 ./.tests/jabber_block_buddy.py
127
128        ./.tests/cleanup_bitlbee.sh
129        ./.tests/cleanup_prosody.sh
130
131    - name: code coverage
132      if: ${{ always() }}
133      run: |
134        gcovr -r .
Note: See TracBrowser for help on using the repository browser.