test stub

This commit is contained in:
Andrew Dolgov 2023-10-21 19:55:15 +03:00
parent 03e956132d
commit ff818a75f0
No known key found for this signature in database
GPG Key ID: 1A56B4FA25D4AF2A
1 changed files with 13 additions and 2 deletions

View File

@ -1,6 +1,7 @@
stages: stages:
- lint - lint
- build - build
- test
variables: variables:
ESLINT_PATHS: js plugins ESLINT_PATHS: js plugins
@ -12,6 +13,9 @@ include:
- project: 'ci/ci-templates' - project: 'ci/ci-templates'
ref: master ref: master
file: .ci-lint-common.yml file: .ci-lint-common.yml
- project: 'ci/ci-templates'
ref: master
file: .ci-integration-test.yml
phpunit: phpunit:
extends: .phpunit extends: .phpunit
@ -23,7 +27,7 @@ phpstan:
extends: .phpstan extends: .phpstan
ttrss-web-nginx: ttrss-web-nginx:
extends: .build-master extends: .build-master-commit-only
variables: variables:
DOCKERFILE: ${CI_PROJECT_DIR}/.docker/web-nginx/Dockerfile DOCKERFILE: ${CI_PROJECT_DIR}/.docker/web-nginx/Dockerfile
@ -33,7 +37,7 @@ ttrss-web-nginx:branch:
DOCKERFILE: ${CI_PROJECT_DIR}/.docker/web-nginx/Dockerfile DOCKERFILE: ${CI_PROJECT_DIR}/.docker/web-nginx/Dockerfile
ttrss-fpm-pgsql-static: ttrss-fpm-pgsql-static:
extends: .build-master extends: .build-master-commit-only
variables: variables:
DOCKERFILE: ${CI_PROJECT_DIR}/.docker/app/Dockerfile DOCKERFILE: ${CI_PROJECT_DIR}/.docker/app/Dockerfile
@ -57,3 +61,10 @@ phpdoc:
cp ${PHPDOC_DEPLOY_SSH_KEY} ~/.ssh/id_ed25519 && cp ${PHPDOC_DEPLOY_SSH_KEY} ~/.ssh/id_ed25519 &&
chmod 0600 ~/.ssh/id_ed25519 chmod 0600 ~/.ssh/id_ed25519
- rsync -av -e 'ssh -o StrictHostKeyChecking=no' phpdoc/ ${PHPDOC_DEPLOY_HOST}:phpdoc/ - rsync -av -e 'ssh -o StrictHostKeyChecking=no' phpdoc/ ${PHPDOC_DEPLOY_HOST}:phpdoc/
integration-test:
variables:
TEST_HELM_REPO: https://gitlab.tt-rss.org/tt-rss/helm-charts/tt-rss
extends: .integration-test
rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH