-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.test.yml
23 lines (23 loc) · 1.03 KB
/
docker-compose.test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
services:
ckan:
environment:
- CKAN_SITE_URL=http://ckan:5000
test:
image: cypress/included:7.3.0
entrypoint: []
command: /bin/bash -c "npm install && npx wait-on http://ckan:5000/api/action/status_show && cypress run"
# To run specific test, use the following syntax:
# command: /bin/bash -c "npm install && npx wait-on http://ckan:5000/api/action/status_show && cypress run --spec cypress/integration/dcat_us_export.spec.js"
# command: /bin/bash -c "npm install && npx wait-on http://ckan:5000/api/action/status_show && cypress run --spec cypress/integration/login.spec.js"
# To run against a dev or production image, use the following syntax:
# command: /bin/bash -c "CYPRESS_BASE_URL=https://inventory-dev-datagov.app.cloud.gov/ cypress run"
environment:
# Created admin user and password, setup in .env
- CYPRESS_USER=admin
- CYPRESS_USER_PASSWORD=password
- CYPRESS_CKAN_URL=http://ckan:5000
working_dir: /e2e
depends_on:
- ckan
volumes:
- ./e2e:/e2e