Skip to content

Commit 00b18f6

Browse files
committed
Merge branch 'fix-ci' into 'main'
Fix CI See merge request reportcreator/reportcreator!952
2 parents 1800c3a + 5eea5fa commit 00b18f6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.gitlab-ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,14 +141,16 @@ test-api:
141141
path: api/test-reports/coverage.xml
142142
coverage: '/(?i)total.*? (100(?:\.0+)?\%|[1-9]?\d(?:\.\d+)?\%)$/' # Regex to match coverage report
143143
variables:
144+
FF_NETWORK_PER_BUILD: "true"
145+
DATABASE_HOST: postgres
144146
POSTGRES_DB: postgres
145147
POSTGRES_USER: postgres
146148
POSTGRES_PASSWORD: postgres
147149
POSTGRES_HOST_AUTH_METHOD: trust
148150
script:
149151
- mkdir api/test-reports
150152
- chmod 777 api/test-reports
151-
- docker run -e DATABASE_HOST=${POSTGRES_PORT_5432_TCP_ADDR} -e DATABASE_NAME=${POSTGRES_DB} -e DATABASE_USER=${POSTGRES_USER} -e DATABASE_PASSWORD=${POSTGRES_PASSWORD} -e ENABLED_PLUGINS='*' --mount=type=bind,source=$PWD/api/test-reports,target=/app/api/src/test-reports $CI_REGISTRY_IMAGE/api-test:$CI_COMMIT_SHORT_SHA pytest -n 8 --junitxml=test-reports/junit.xml --cov=sysreptor --cov-report=term --cov-report=xml:test-reports/coverage.xml
153+
- docker run -e DATABASE_HOST=${DATABASE_HOST} -e DATABASE_NAME=${POSTGRES_DB} -e DATABASE_USER=${POSTGRES_USER} -e DATABASE_PASSWORD=${POSTGRES_PASSWORD} -e ENABLED_PLUGINS='*' --network=host --mount=type=bind,source=$PWD/api/test-reports,target=/app/api/src/test-reports $CI_REGISTRY_IMAGE/api-test:$CI_COMMIT_SHORT_SHA pytest -n 8 --junitxml=test-reports/junit.xml --cov=sysreptor --cov-report=term --cov-report=xml:test-reports/coverage.xml
152154

153155
test-frontend:
154156
stage: test

0 commit comments

Comments
 (0)