summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2025-05-22 14:05:24 +0300
committerAndrew Dolgov <fox@fakecake.org>2025-05-22 14:05:24 +0300
commitb29de3eb7cc9a10f9fd5bd044e31bd28f9744b8f (patch)
treefebc2a7668c7292c28ce82a12a01bc7af64dd6eb /.gitlab-ci.yml
parent819fde73183c1b3f32eb5a3c0a6de356dae3bfd2 (diff)
add APP_WEB_ROOT to fpm container
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml8
1 files changed, 5 insertions, 3 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index a54138312..1c17804e1 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -118,6 +118,8 @@ phpunit-integration:
AUTO_CREATE_USER_PASS: 'test'
AUTO_CREATE_USER_ACCESS_LEVEL: '10'
AUTO_CREATE_USER_ENABLE_API: 'true'
+ API_URL: http://web-nginx/tt-rss/api/
+ HEALTHCHECK_URL: http://web-nginx/tt-rss/public.php?op=healthcheck
services:
- name: registry.fakecake.org/docker.io/postgres:15-alpine
alias: db
@@ -128,12 +130,12 @@ phpunit-integration:
rules:
- if: $CI_COMMIT_BRANCH && $REGISTRY_USER != null
script:
- - export API_URL="http://web-nginx/tt-rss/api/"
- |
for a in `seq 1 15`; do
- php83 vendor/bin/phpunit --group integration --do-not-cache-result --log-junit phpunit-report.xml --coverage-cobertura phpunit-coverage.xml --coverage-text --colors=never && exit 0
- sleep 10
+ curl -fvs ${HEALTHCHECK_URL} && break
+ sleep 5
done
+ - php83 vendor/bin/phpunit --group integration --do-not-cache-result --log-junit phpunit-report.xml --coverage-cobertura phpunit-coverage.xml --coverage-text --colors=never
artifacts:
when: always
reports: