forked from cms-dev/cms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.test.yml
More file actions
30 lines (30 loc) · 967 Bytes
/
Copy pathdocker-compose.test.yml
File metadata and controls
30 lines (30 loc) · 967 Bytes
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
version: "3.3"
services:
db:
container_name: db
image: postgres
environment:
POSTGRES_HOST_AUTH_METHOD: trust
volumes:
# It would be nice here to support OSes that don't have /tmp
# See: https://github.com/docker/compose/issues/3344
- "/tmp/var_lib_postgresql_data:/var/lib/postgresql/data"
cms_test:
container_name: cms_test
build: .
depends_on:
- "db"
environment:
CMS_CONFIG: /usr/local/etc/cms-testdb.conf
volumes:
- "./codecov:/home/cmsuser/cms/codecov"
privileged: true
command: >
wait-for-it db:5432 -- sh -c "
createdb --host=db --username=postgres cmsdb ;
createdb --host=db --username=postgres cmsdbfortesting ;
cmsInitDB ;
sudo chown cmsuser:cmsuser ./codecov ;
TEST_SUITE=unittests cmsRunTests -v --coverage codecov/unittests.xml ;
TEST_SUITE=functionaltests cmsRunTests -v --coverage codecov/functionaltests.xml ;
"