[90417ce] | 1 | name: CI |
---|
| 2 | |
---|
| 3 | on: |
---|
| 4 | - pull_request |
---|
| 5 | - push |
---|
| 6 | |
---|
| 7 | jobs: |
---|
[478a5f6] | 8 | general/jabber: |
---|
[90417ce] | 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: | |
---|
[5d927631] | 21 | ./configure --asan=1 --twitter=0 |
---|
[3f783cf] | 22 | cat ./.tests/gcovflags >> Makefile.settings |
---|
[90417ce] | 23 | make |
---|
[9634fba] | 24 | sudo make install |
---|
[03daea6] | 25 | sudo make install-etc |
---|
[56a40d3] | 26 | |
---|
[c6c05ad] | 27 | touch ./debuglog |
---|
[03daea6] | 28 | |
---|
| 29 | sudo mkdir /var/lib/bitlbee |
---|
[4c1baa4] | 30 | sudo chmod -R 777 /var/lib/bitlbee |
---|
[c6c05ad] | 31 | |
---|
[2806b5e] | 32 | - name: talk to bitlbee |
---|
[90417ce] | 33 | run: | |
---|
[cb80802] | 34 | ./.tests/setup_bitlbee.sh |
---|
[2806b5e] | 35 | |
---|
| 36 | python3 ./.tests/talk_to_bitlbee.py |
---|
| 37 | |
---|
| 38 | ./.tests/cleanup_bitlbee.sh |
---|
[ef70f9f] | 39 | |
---|
[a181ec1] | 40 | - name: ask for help |
---|
[ef70f9f] | 41 | run: | |
---|
| 42 | ./.tests/setup_bitlbee.sh |
---|
| 43 | |
---|
| 44 | python3 ./.tests/help.py |
---|
| 45 | |
---|
| 46 | ./.tests/cleanup_bitlbee.sh |
---|
[2806b5e] | 47 | |
---|
[5d927631] | 48 | - name: (un)register |
---|
[07ade22] | 49 | run: | |
---|
[5d927631] | 50 | ./.tests/setup_prosody.sh |
---|
| 51 | ./.tests/setup_bitlbee.sh |
---|
| 52 | |
---|
| 53 | python3 ./.tests/register.py |
---|
| 54 | |
---|
| 55 | ./.tests/cleanup_bitlbee.sh |
---|
| 56 | ./.tests/setup_bitlbee.sh |
---|
| 57 | |
---|
| 58 | python3 ./.tests/identify.py |
---|
| 59 | python3 ./.tests/unregister.py |
---|
| 60 | |
---|
| 61 | ./.tests/cleanup_bitlbee.sh |
---|
| 62 | ./.tests/setup_bitlbee.sh |
---|
| 63 | |
---|
[07ade22] | 64 | python3 ./.tests/identify_nonexist.py |
---|
[5d927631] | 65 | |
---|
| 66 | ./.tests/cleanup_bitlbee.sh |
---|
| 67 | ./.tests/cleanup_prosody.sh |
---|
| 68 | |
---|
[6066443] | 69 | - name: jabber connect |
---|
[ef70f9f] | 70 | if: ${{ always() }} |
---|
[c2b9040] | 71 | run: | |
---|
[c6c05ad] | 72 | ./.tests/setup_prosody.sh |
---|
| 73 | ./.tests/setup_bitlbee.sh |
---|
| 74 | |
---|
[c386390] | 75 | python3 ./.tests/jabber_connect.py |
---|
[c05108c] | 76 | |
---|
[c6c05ad] | 77 | ./.tests/cleanup_bitlbee.sh |
---|
| 78 | ./.tests/cleanup_prosody.sh |
---|
[4b15a9a] | 79 | |
---|
[542b7d5] | 80 | - name: jabber delete account |
---|
| 81 | if: ${{ always() }} |
---|
| 82 | run: | |
---|
| 83 | ./.tests/setup_prosody.sh |
---|
| 84 | ./.tests/setup_bitlbee.sh |
---|
| 85 | |
---|
| 86 | python3 ./.tests/jabber_delete_acc.py |
---|
| 87 | |
---|
| 88 | ./.tests/cleanup_bitlbee.sh |
---|
| 89 | ./.tests/cleanup_prosody.sh |
---|
| 90 | |
---|
[e14bdc67] | 91 | - name: jabber add buddy |
---|
[ef70f9f] | 92 | if: ${{ always() }} |
---|
[e14bdc67] | 93 | run: | |
---|
| 94 | ./.tests/setup_prosody.sh |
---|
| 95 | ./.tests/setup_bitlbee.sh |
---|
| 96 | |
---|
| 97 | python3 ./.tests/jabber_add_buddy.py |
---|
| 98 | |
---|
| 99 | ./.tests/cleanup_bitlbee.sh |
---|
| 100 | ./.tests/cleanup_prosody.sh |
---|
| 101 | |
---|
[1fb3406] | 102 | - name: jabber remove buddy |
---|
| 103 | if: ${{ always() }} |
---|
| 104 | run: | |
---|
| 105 | ./.tests/setup_prosody.sh |
---|
| 106 | ./.tests/setup_bitlbee.sh |
---|
| 107 | |
---|
| 108 | python3 ./.tests/jabber_remove_buddy.py |
---|
| 109 | |
---|
| 110 | ./.tests/cleanup_bitlbee.sh |
---|
| 111 | ./.tests/cleanup_prosody.sh |
---|
| 112 | |
---|
[e14bdc67] | 113 | - name: jabber send message |
---|
[ef70f9f] | 114 | if: ${{ always() }} |
---|
[e14bdc67] | 115 | run: | |
---|
| 116 | ./.tests/setup_prosody.sh |
---|
| 117 | ./.tests/setup_bitlbee.sh |
---|
| 118 | |
---|
| 119 | python3 ./.tests/jabber_send_msg.py |
---|
| 120 | |
---|
| 121 | ./.tests/cleanup_bitlbee.sh |
---|
| 122 | ./.tests/cleanup_prosody.sh |
---|
| 123 | |
---|
| 124 | - name: jabber rename buddy |
---|
[ef70f9f] | 125 | if: ${{ always() }} |
---|
[e14bdc67] | 126 | run: | |
---|
| 127 | ./.tests/setup_prosody.sh |
---|
| 128 | ./.tests/setup_bitlbee.sh |
---|
| 129 | |
---|
| 130 | python3 ./.tests/jabber_rename_buddy.py |
---|
| 131 | |
---|
| 132 | ./.tests/cleanup_bitlbee.sh |
---|
| 133 | ./.tests/cleanup_prosody.sh |
---|
| 134 | |
---|
| 135 | - name: jabber set status |
---|
[ef70f9f] | 136 | if: ${{ always() }} |
---|
[e14bdc67] | 137 | run: | |
---|
| 138 | ./.tests/setup_prosody.sh |
---|
| 139 | ./.tests/setup_bitlbee.sh |
---|
| 140 | |
---|
| 141 | python3 ./.tests/jabber_status.py |
---|
| 142 | |
---|
| 143 | ./.tests/cleanup_bitlbee.sh |
---|
| 144 | ./.tests/cleanup_prosody.sh |
---|
| 145 | |
---|
[ef70f9f] | 146 | - name: jabber go offline |
---|
| 147 | if: ${{ always() }} |
---|
| 148 | run: | |
---|
| 149 | ./.tests/setup_prosody.sh |
---|
| 150 | ./.tests/setup_bitlbee.sh |
---|
| 151 | |
---|
| 152 | python3 ./.tests/jabber_offline.py |
---|
| 153 | |
---|
| 154 | ./.tests/cleanup_bitlbee.sh |
---|
| 155 | ./.tests/cleanup_prosody.sh |
---|
| 156 | |
---|
| 157 | - name: jabber change default target |
---|
| 158 | if: ${{ always() }} |
---|
| 159 | run: | |
---|
| 160 | ./.tests/setup_prosody.sh |
---|
| 161 | ./.tests/setup_bitlbee.sh |
---|
| 162 | |
---|
| 163 | python3 ./.tests/jabber_default_target.py |
---|
| 164 | |
---|
| 165 | ./.tests/cleanup_bitlbee.sh |
---|
| 166 | ./.tests/cleanup_prosody.sh |
---|
| 167 | |
---|
| 168 | - name: jabber block buddy |
---|
| 169 | if: ${{ always() }} |
---|
| 170 | run: | |
---|
| 171 | ./.tests/setup_prosody.sh |
---|
| 172 | ./.tests/setup_bitlbee.sh |
---|
| 173 | |
---|
| 174 | python3 ./.tests/jabber_block_buddy.py |
---|
| 175 | |
---|
| 176 | ./.tests/cleanup_bitlbee.sh |
---|
| 177 | ./.tests/cleanup_prosody.sh |
---|
| 178 | |
---|
[c05108c] | 179 | - name: code coverage |
---|
[8d7cc55] | 180 | if: ${{ always() }} |
---|
[c05108c] | 181 | run: | |
---|
| 182 | gcovr -r . |
---|