mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-23 23:42:29 +00:00
6d004f0994
This allows to run integration tests during development and on CI with the right dependencies. There are several changes that this involves, but the gist of it is that a test environment is setup using `docker-compose.test.yml`. This file is loaded by `resin-ci` during the build, and ensures that integration tests are ran after setting up all requirements. This commit also defines a test environment command that can be setup using `npm run test:env` in order to run tests in a local development machine.
17 lines
479 B
YAML
17 lines
479 B
YAML
version: '2.3'
|
|
|
|
services:
|
|
# This service can only be named `main` or `balena-supervisor` as older
|
|
# devices will keep relying on the `/v6/supervisor_release` endpoint that
|
|
# identifies the supervisor image by that service name.
|
|
balena-supervisor:
|
|
build: ./
|
|
privileged: true
|
|
tty: true
|
|
restart: always
|
|
network_mode: host
|
|
labels:
|
|
io.balena.features.balena-api: '1'
|
|
io.balena.features.dbus: '1'
|
|
io.balena.features.balena-socket: '1'
|