summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2023-10-29 09:19:35 +0300
committerAndrew Dolgov <[email protected]>2023-10-29 09:19:35 +0300
commitafaef667830bad008c4d64b812719992e7091b57 (patch)
tree517208b3bebfb959ea7b8060670be8ac60219b19
parent8b72d9ab1143416ca28ff3ab1230eb575ee63ace (diff)
reduce targets
-rw-r--r--.gitlab-ci.yml15
1 files changed, 5 insertions, 10 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ce7be8695..0f1109dc6 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -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