forked from PelionIoT/mbed-cloud-sdk-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
30 lines (28 loc) · 892 Bytes
/
docker-compose.yml
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
# this file will run a testrunner against the specified image
# run it with:
# docker-compose up --exit-code-from testrunner
sdk_test_server:
command:
- sh
- "-c"
- "source .venv/bin/activate && python tests/integration/server.py"
environment:
- MBED_CLOUD_SDK_API_KEY=abc123
- TEST_RUNNER_DEFAULT_API_KEY
- TEST_RUNNER_DEFAULT_API_HOST
image: sdk_test_server
volumes: ["../results:/build/results", "../test_fixtures:/test_fixtures"]
testrunner:
environment:
- "TEST_SERVER_URL=http://sdk_test_server:5000"
- TEST_FIXTURES_DIR=/test_fixtures
- MBED_CLOUD_SDK_API_KEY
- MBED_CLOUD_SDK_HOST
image: "${TESTRUNNER_DOCKER_IMAGE}"
command:
- sh
- "-c"
- "sleep 1 && python -m trunner"
links:
- sdk_test_server
volumes: ["../results:/runner/results", "../test_fixtures:/runner/test_fixtures"]