diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0f1109dc6..b6a82636a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -61,6 +61,18 @@ phpdoc: chmod 0600 ~/.ssh/id_ed25519 - rsync -av -e 'ssh -o StrictHostKeyChecking=no' phpdoc/ ${PHPDOC_DEPLOY_HOST}:phpdoc/ +phpunit-integration: + image: ${PHP_IMAGE} + variables: + TEST_HELM_REPO: https://gitlab.tt-rss.org/tt-rss/helm-charts/tt-rss + extends: .integration-test + 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/" + - php82 vendor/bin/phpunit --group integration + rules: + - if: $CI_COMMIT_BRANCH + selenium: image: ${SELENIUM_IMAGE} variables: @@ -75,16 +87,6 @@ selenium: needs: - job: phpunit-integration -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/" - - php82 vendor/bin/phpunit --group integration - rules: - - if: $CI_COMMIT_BRANCH - ttrss-web-nginx:publish: stage: publish extends: .build-master diff --git a/tests/integration/ApiTest.php b/tests/integration/ApiTest.php index 8f0759e68..80f8af983 100644 --- a/tests/integration/ApiTest.php +++ b/tests/integration/ApiTest.php @@ -8,11 +8,8 @@ final class ApiTest extends TestCase { private $api_url; function __construct() { - $this->api_url = getenv('API_URL'); - print_r($this->api_url); - parent::__construct(); }