forked from uber/baseweb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (43 loc) · 1.2 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
services:
# this spins up a server that serves the html/js/css for the e2e tests
e2e-server:
command: yarn e2e:serve
build: .
expose:
- 8080
healthcheck:
test: ['CMD-SHELL', 'curl -H "Accept: text/html" -f http://e2e-server:8080 || exit 1']
interval: 5s
timeout: 10s
retries: 5
environment:
- COMPOSE_HTTP_TIMEOUT
# running the e2e tests in ci
e2e-test:
build: .
links:
- e2e-server
volumes:
- ./__artifacts__:/baseui/__artifacts__:delegated
- ./test-results:/baseui/test-results:delegated
- ./playwright-report:/baseui/playwright-report:delegated
- ./vrt/tests.vrt.js-snapshots:/baseui/vrt/tests.vrt.js-snapshots:delegated
depends_on:
e2e-server:
condition: service_healthy
environment:
- CODECOV_TOKEN
- CI=true
- BUILDKITE
- BUILDKITE_BRANCH
- BUILDKITE_BUILD_NUMBER
- BUILDKITE_JOB_ID
- BUILDKITE_BUILD_URL
- BUILDKITE_PROJECT_SLUG
- BUILDKITE_COMMIT
- BUILDKITE_PULL_REQUEST
- BUILDKITE_PULL_REQUEST_REPO
- BUILDKITE_UBEROPENSOURCE_API_TOKEN
- GITHUB_BOT_AUTH_TOKEN
- GITHUB_BOT_EMAIL
- GITHUB_BOT_NAME