Working on tests.

This commit is contained in:
2021-10-22 08:01:18 -04:00
parent 6ec6ce34d9
commit f45f667af6
11 changed files with 208 additions and 35 deletions

22
docker-compose.yaml Normal file
View File

@@ -0,0 +1,22 @@
# run this with docker-compose -f docker/docker-compose.yml run test
version: "3.3"
services:
test:
image: swift:5.3
working_dir: /dewPoint-controller
volumes:
- .:/dewPoint-controller
depends_on:
- mosquitto
environment:
- MOSQUITTO_SERVER=mosquitto
command: /bin/bash -xcl "swift test --enable-test-discovery --sanitize=thread"
mosquitto:
image: eclipse-mosquitto
volumes:
- ./mosquitto/config:/mosquitto/config
- ./mosquitto/certs:/mosquitto/certs
ports:
- "1883:1883"