Loading .codeclimate.yml 0 → 100644 +8 −0 Original line number Diff line number Diff line plugins: phpmd: enabled: true config: file_extensions: - php - inc rulesets: "unusedcode,codesize,naming,controversial,design" .gitlab-ci.yml +18 −0 Original line number Diff line number Diff line stages: - test - performance - dast - deploy include: - project: "e/infra/ecloud/nextcloud-apps/ci-templates" ref: main file: "nc-apps-checkout-deploy.yml" - project: "e/infra/ecloud/nextcloud-apps/ci-templates" ref: main file: "mr-review-tools.yml" - project: "e/infra/ecloud/nextcloud-apps/ci-templates" ref: main file: "git-operations.yml" - project: "e/infra/ecloud/nextcloud-apps/ci-templates" ref: main file: "populate-code-climate-default-config.yml" .deploy:nextcloud-app-by-checkout: script: # exit on failure - set -e # print var to confirm - echo "Deploying $APP_NAME to $CI_ENVIRONMENT_NAME ($DEPLOYMENT_HOST):${DEPLOYMENT_PATH}${APP_PATH}" # clone repo to /tmp - | ssh $SSH_USER@$DEPLOYMENT_HOST /bin/bash -s << EOT set -e git clone --depth 1 $CI_REPOSITORY_URL --branch $CI_COMMIT_REF_NAME --single-branch /tmp/${CI_JOB_ID}/${APP_NAME}/snappymail sudo rsync -avzh --chown www-data:www-data --delete --exclude '.git*' /tmp/${CI_JOB_ID}/${APP_NAME} ${DEPLOYMENT_PATH}${APP_PATH} EOT Loading Loading
.codeclimate.yml 0 → 100644 +8 −0 Original line number Diff line number Diff line plugins: phpmd: enabled: true config: file_extensions: - php - inc rulesets: "unusedcode,codesize,naming,controversial,design"
.gitlab-ci.yml +18 −0 Original line number Diff line number Diff line stages: - test - performance - dast - deploy include: - project: "e/infra/ecloud/nextcloud-apps/ci-templates" ref: main file: "nc-apps-checkout-deploy.yml" - project: "e/infra/ecloud/nextcloud-apps/ci-templates" ref: main file: "mr-review-tools.yml" - project: "e/infra/ecloud/nextcloud-apps/ci-templates" ref: main file: "git-operations.yml" - project: "e/infra/ecloud/nextcloud-apps/ci-templates" ref: main file: "populate-code-climate-default-config.yml" .deploy:nextcloud-app-by-checkout: script: # exit on failure - set -e # print var to confirm - echo "Deploying $APP_NAME to $CI_ENVIRONMENT_NAME ($DEPLOYMENT_HOST):${DEPLOYMENT_PATH}${APP_PATH}" # clone repo to /tmp - | ssh $SSH_USER@$DEPLOYMENT_HOST /bin/bash -s << EOT set -e git clone --depth 1 $CI_REPOSITORY_URL --branch $CI_COMMIT_REF_NAME --single-branch /tmp/${CI_JOB_ID}/${APP_NAME}/snappymail sudo rsync -avzh --chown www-data:www-data --delete --exclude '.git*' /tmp/${CI_JOB_ID}/${APP_NAME} ${DEPLOYMENT_PATH}${APP_PATH} EOT Loading