reduce targets

This commit is contained in:
Andrew Dolgov 2023-10-29 09:19:35 +03:00
parent 8b72d9ab11
commit afaef66783
No known key found for this signature in database
GPG Key ID: 1A56B4FA25D4AF2A
1 changed files with 5 additions and 10 deletions

View File

@ -71,24 +71,19 @@ selenium:
- export K8S_NAMESPACE=$(kubectl get pods -o=custom-columns=NS:.metadata.namespace | tail -1)
- python3 tests/integration/selenium_test.py
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $CI_COMMIT_BRANCH
needs:
- job: phpunit-integration
selenium:branch:
extends: selenium
rules:
- if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH && $CI_REGISTRY_USER != null
when: manual
phpunit-integration:branch:
phpunit-integration:
image: ${PHP_IMAGE}
extends: selenium
script:
- export K8S_NAMESPACE=$(kubectl get pods -o=custom-columns=NS:.metadata.namespace | tail -1)
- export API_URL="http://tt-rss-${CI_COMMIT_SHORT_SHA}-app.$K8S_NAMESPACE.svc.cluster.local/tt-rss/api/"
- env
- php82 vendor/bin/phpunit --group integration
rules:
- if: $CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH && $CI_REGISTRY_USER != null
- if: $CI_COMMIT_BRANCH
ttrss-web-nginx:publish:
stage: publish