ttrss/.gitlab-ci.yml

51 lines
1.1 KiB
YAML
Raw Normal View History

2023-04-01 04:19:16 +00:00
stages:
- lint
- build
2023-04-02 09:30:33 +00:00
variables:
ESLINT_PATHS: js plugins
2023-04-01 04:19:16 +00:00
2023-04-02 09:30:33 +00:00
include:
- project: 'ci/ci-templates'
ref: master
file: .ci-build-docker.yml
- project: 'ci/ci-templates'
ref: master
file: .ci-lint-common.yml
2023-04-01 04:19:16 +00:00
phpunit:
2023-04-02 09:30:33 +00:00
extends: .phpunit
2023-04-01 04:19:16 +00:00
eslint:
2023-04-02 09:30:33 +00:00
extends: .phpunit
2023-04-01 04:19:16 +00:00
phpstan:
2023-04-02 09:30:33 +00:00
extends: .phpstan
2023-04-01 04:19:16 +00:00
ttrss-web-nginx:
extends: .build-master
variables:
BUILD_CONTEXT: ${CI_PROJECT_DIR}/.docker/web-nginx
ttrss-fpm-pgsql-static:
extends: .build-master
variables:
BUILD_CONTEXT: ${CI_PROJECT_DIR}/.docker/app
2023-04-01 06:34:54 +00:00
phpdoc:
image:
name: ${CI_DOCKER_IMAGE}
2023-04-01 06:51:44 +00:00
stage: build
2023-04-01 06:34:54 +00:00
rules:
2023-04-01 09:36:37 +00:00
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE != "web"
2023-04-01 06:34:54 +00:00
changes:
- '**/*.php'
2023-04-01 06:50:32 +00:00
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
when: manual
2023-04-01 06:34:54 +00:00
script:
- php81 /phpDocumentor.phar -d classes -d include -t phpdoc --visibility=public
- mkdir -p ~/.ssh &&
cp ${PHPDOC_DEPLOY_SSH_KEY} ~/.ssh/id_ed25519 &&
chmod 0600 ~/.ssh/id_ed25519
- rsync -av -e 'ssh -o StrictHostKeyChecking=no' phpdoc/ ${PHPDOC_DEPLOY_HOST}:phpdoc/