[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 |
---|
[50efbf4] | 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 |
---|
[ef70f9f] | 34 | |
---|
[a181ec1] | 35 | - name: ask for help |
---|
[ef70f9f] | 36 | run: | |
---|
| 37 | ./.tests/setup_bitlbee.sh |
---|
| 38 | |
---|
| 39 | python3 ./.tests/help.py |
---|
| 40 | |
---|
| 41 | ./.tests/cleanup_bitlbee.sh |
---|
[2806b5e] | 42 | |
---|
[6066443] | 43 | - name: jabber connect |
---|
[ef70f9f] | 44 | if: ${{ always() }} |
---|
[c2b9040] | 45 | run: | |
---|
[c6c05ad] | 46 | ./.tests/setup_prosody.sh |
---|
| 47 | ./.tests/setup_bitlbee.sh |
---|
| 48 | |
---|
[c386390] | 49 | python3 ./.tests/jabber_connect.py |
---|
[c05108c] | 50 | |
---|
[c6c05ad] | 51 | ./.tests/cleanup_bitlbee.sh |
---|
| 52 | ./.tests/cleanup_prosody.sh |
---|
[4b15a9a] | 53 | |
---|
[542b7d5] | 54 | - name: jabber delete account |
---|
| 55 | if: ${{ always() }} |
---|
| 56 | run: | |
---|
| 57 | ./.tests/setup_prosody.sh |
---|
| 58 | ./.tests/setup_bitlbee.sh |
---|
| 59 | |
---|
| 60 | python3 ./.tests/jabber_delete_acc.py |
---|
| 61 | |
---|
| 62 | ./.tests/cleanup_bitlbee.sh |
---|
| 63 | ./.tests/cleanup_prosody.sh |
---|
| 64 | |
---|
[e14bdc67] | 65 | - name: jabber add buddy |
---|
[ef70f9f] | 66 | if: ${{ always() }} |
---|
[e14bdc67] | 67 | run: | |
---|
| 68 | ./.tests/setup_prosody.sh |
---|
| 69 | ./.tests/setup_bitlbee.sh |
---|
| 70 | |
---|
| 71 | python3 ./.tests/jabber_add_buddy.py |
---|
| 72 | |
---|
| 73 | ./.tests/cleanup_bitlbee.sh |
---|
| 74 | ./.tests/cleanup_prosody.sh |
---|
| 75 | |
---|
[1fb3406] | 76 | - name: jabber remove buddy |
---|
| 77 | if: ${{ always() }} |
---|
| 78 | run: | |
---|
| 79 | ./.tests/setup_prosody.sh |
---|
| 80 | ./.tests/setup_bitlbee.sh |
---|
| 81 | |
---|
| 82 | python3 ./.tests/jabber_remove_buddy.py |
---|
| 83 | |
---|
| 84 | ./.tests/cleanup_bitlbee.sh |
---|
| 85 | ./.tests/cleanup_prosody.sh |
---|
| 86 | |
---|
[e14bdc67] | 87 | - name: jabber send message |
---|
[ef70f9f] | 88 | if: ${{ always() }} |
---|
[e14bdc67] | 89 | run: | |
---|
| 90 | ./.tests/setup_prosody.sh |
---|
| 91 | ./.tests/setup_bitlbee.sh |
---|
| 92 | |
---|
| 93 | python3 ./.tests/jabber_send_msg.py |
---|
| 94 | |
---|
| 95 | ./.tests/cleanup_bitlbee.sh |
---|
| 96 | ./.tests/cleanup_prosody.sh |
---|
| 97 | |
---|
| 98 | - name: jabber rename buddy |
---|
[ef70f9f] | 99 | if: ${{ always() }} |
---|
[e14bdc67] | 100 | run: | |
---|
| 101 | ./.tests/setup_prosody.sh |
---|
| 102 | ./.tests/setup_bitlbee.sh |
---|
| 103 | |
---|
| 104 | python3 ./.tests/jabber_rename_buddy.py |
---|
| 105 | |
---|
| 106 | ./.tests/cleanup_bitlbee.sh |
---|
| 107 | ./.tests/cleanup_prosody.sh |
---|
| 108 | |
---|
| 109 | - name: jabber set status |
---|
[ef70f9f] | 110 | if: ${{ always() }} |
---|
[e14bdc67] | 111 | run: | |
---|
| 112 | ./.tests/setup_prosody.sh |
---|
| 113 | ./.tests/setup_bitlbee.sh |
---|
| 114 | |
---|
| 115 | python3 ./.tests/jabber_status.py |
---|
| 116 | |
---|
| 117 | ./.tests/cleanup_bitlbee.sh |
---|
| 118 | ./.tests/cleanup_prosody.sh |
---|
| 119 | |
---|
[ef70f9f] | 120 | - name: jabber go offline |
---|
| 121 | if: ${{ always() }} |
---|
| 122 | run: | |
---|
| 123 | ./.tests/setup_prosody.sh |
---|
| 124 | ./.tests/setup_bitlbee.sh |
---|
| 125 | |
---|
| 126 | python3 ./.tests/jabber_offline.py |
---|
| 127 | |
---|
| 128 | ./.tests/cleanup_bitlbee.sh |
---|
| 129 | ./.tests/cleanup_prosody.sh |
---|
| 130 | |
---|
| 131 | - name: jabber change default target |
---|
| 132 | if: ${{ always() }} |
---|
| 133 | run: | |
---|
| 134 | ./.tests/setup_prosody.sh |
---|
| 135 | ./.tests/setup_bitlbee.sh |
---|
| 136 | |
---|
| 137 | python3 ./.tests/jabber_default_target.py |
---|
| 138 | |
---|
| 139 | ./.tests/cleanup_bitlbee.sh |
---|
| 140 | ./.tests/cleanup_prosody.sh |
---|
| 141 | |
---|
| 142 | - name: jabber block buddy |
---|
| 143 | if: ${{ always() }} |
---|
| 144 | run: | |
---|
| 145 | ./.tests/setup_prosody.sh |
---|
| 146 | ./.tests/setup_bitlbee.sh |
---|
| 147 | |
---|
| 148 | python3 ./.tests/jabber_block_buddy.py |
---|
| 149 | |
---|
| 150 | ./.tests/cleanup_bitlbee.sh |
---|
| 151 | ./.tests/cleanup_prosody.sh |
---|
| 152 | |
---|
[c05108c] | 153 | - name: code coverage |
---|
[8d7cc55] | 154 | if: ${{ always() }} |
---|
[c05108c] | 155 | run: | |
---|
| 156 | gcovr -r . |
---|