source:
.github/workflows/ci.yml
@
f7cd819
Last change on this file since f7cd819 was c386390, checked in by , at 2021-03-29T13:01:22Z | |
---|---|
|
|
File size: 1.0 KB |
Rev | Line | |
---|---|---|
[90417ce] | 1 | name: CI |
2 | ||
3 | on: | |
4 | - pull_request | |
5 | - push | |
6 | ||
7 | jobs: | |
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 | |
[c05108c] | 16 | sudo apt-get install -y --no-install-recommends clang git make pkg-config libgnutls28-dev libgcrypt20-dev libglib2.0-dev prosody gcovr |
[7b1fd83] | 17 | sudo prosodyctl stop |
[90417ce] | 18 | |
19 | - name: build bitlbee | |
20 | run: | | |
[2806b5e] | 21 | ./configure --asan=1 |
[3f783cf] | 22 | cat ./.tests/gcovflags >> Makefile.settings |
[90417ce] | 23 | make |
[9634fba] | 24 | sudo make install |
[c6c05ad] | 25 | touch ./debuglog |
26 | ||
[2806b5e] | 27 | - name: talk to bitlbee |
[90417ce] | 28 | run: | |
[cb80802] | 29 | ./.tests/setup_bitlbee.sh |
[2806b5e] | 30 | |
31 | python3 ./.tests/talk_to_bitlbee.py | |
32 | ||
33 | ./.tests/cleanup_bitlbee.sh | |
34 | ||
[6066443] | 35 | - name: jabber connect |
[c2b9040] | 36 | run: | |
[c6c05ad] | 37 | ./.tests/setup_prosody.sh |
38 | ./.tests/setup_bitlbee.sh | |
39 | ||
[c386390] | 40 | python3 ./.tests/jabber_connect.py |
[c05108c] | 41 | |
[c6c05ad] | 42 | ./.tests/cleanup_bitlbee.sh |
43 | ./.tests/cleanup_prosody.sh | |
[4b15a9a] | 44 | |
[c05108c] | 45 | - name: code coverage |
[8d7cc55] | 46 | if: ${{ always() }} |
[c05108c] | 47 | run: | |
48 | gcovr -r . |
Note: See TracBrowser
for help on using the repository browser.