-
Notifications
You must be signed in to change notification settings - Fork 25
58 lines (47 loc) · 1.92 KB
/
integration_tests.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
on: [pull_request]
name: IntegrationTests
jobs:
integration_tests_mosquitto:
name: Integration tests with mosquitto
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Build embedded
run: cargo build --target thumbv7em-none-eabihf --features "no_std" --no-default-features
- name: Start Mosquitto
run: |
sudo apt-get install mosquitto
sudo service mosquitto stop
mosquitto_passwd -U .ci/mqtt_pass.txt
mosquitto -c .ci/mosquitto.conf -d
- name: Run integration-tests tests
run: RUST_LOG=trace cargo test integration
integration_tests_hive:
name: Integration tests with HiveMQ
runs-on: ubuntu-latest
steps:
- name: Git checkout
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Build embedded
run: cargo build --target thumbv7em-none-eabihf --features "no_std" --no-default-features
- name: Start HiveMQ
run: |
curl -LO https://github.com/hivemq/hivemq-community-edition/releases/download/2021.3/hivemq-ce-2021.3.zip
unzip hivemq-ce-2021.3.zip
curl -LO https://www.hivemq.com/releases/extensions/hivemq-file-rbac-extension-4.4.0.zip
unzip hivemq-file-rbac-extension-4.4.0.zip
mv hivemq-file-rbac-extension hivemq-ce-2021.3/extensions
cp .ci/hive_cred.xml hivemq-ce-2021.3/extensions/hivemq-file-rbac-extension/credentials.xml
cp .ci/hive_extension_config.xml hivemq-ce-2021.3/extensions/hivemq-file-rbac-extension/extension-config.xml
hivemq-ce-2021.3/bin/run.sh &
- name: Run integration-tests tests
run: RUST_LOG=trace cargo test integration