Skip to content
Snippets Groups Projects
Commit d6d4433b authored by Bartek Jaskulski's avatar Bartek Jaskulski
Browse files

Merge branch 'ci-cleanup' into 'master'

refactor: remove unused jobs

See merge request wpdesk/gitlab-ci!265
parents 40a6bdf3 dc0e4a9d
No related branches found
No related tags found
No related merge requests found
...@@ -38,6 +38,5 @@ include: ...@@ -38,6 +38,5 @@ include:
- '/includes/tests/codeception-parallel.yml' - '/includes/tests/codeception-parallel.yml'
- '/includes/tests/integration.yml' - '/includes/tests/integration.yml'
- '/includes/deploy.yml' - '/includes/deploy.yml'
- '/includes/pages.yml'
- '/includes/mixins/.after-codeception.yml' - '/includes/mixins/.after-codeception.yml'
- '/includes/mixins/.skip-mr.yml' - '/includes/mixins/.skip-mr.yml'
...@@ -10,35 +10,6 @@ ...@@ -10,35 +10,6 @@
only: only:
- tags - tags
.template: &docs-generation
image:
name: wpdesknet/plugin_documentation_creator:6
tags:
- deploy
except:
variables:
- $DISABLE_DOCS
stage: deploy
script:
- php /tmp/sync.php ${CI_PROJECT_DIR}/${HOOK_DOCS_SRC} ${HELPSCOUT_API_KEY} ${HELPSCOUT_HOOK_PAGE_ID}
- 'curl -X POST --data-urlencode "payload={\"text\": \"Dokumentacja hooków projektu ${CI_PROJECT_NAME} w wersji ${CI_COMMIT_REF_NAME} umieszczona w HelpScout \", }" https://hooks.slack.com/services/${SLACK_AUTH}'
hooks docs:
<<: *docs-generation
allow_failure: true
only:
- tags
except:
variables:
- $DISABLE_DOCS
hooks docs refresh:
<<: *docs-generation
only:
variables:
- $HOOK_DOCS_SRC
when: manual
.template: &job-build-to_deploy .template: &job-build-to_deploy
image: wpdesknet/phpunit-woocommerce:0-0 image: wpdesknet/phpunit-woocommerce:0-0
stage: pre-deploy stage: pre-deploy
......
.template: &job-pages
stage: deploy
artifacts:
paths:
- public
script:
- mkdir public
- echo "<h1>${CI_PROJECT_NAME}</h1>" > public/index.html
- >
if [ -d "phpdoc" ]; then
echo "<br/><br/><a href="phpdoc/">PHP Doc</a>" >> public/index.html
mkdir -p public/phpdoc
cp -r phpdoc public
fi
- >
if [ -d "phpmetric" ]; then
echo "<br/><br/><a href="phpmetric/">PhpMetrics</a>" >> public/index.html
mkdir public/phpmetric
cp -r phpmetric/* public/phpmetric
fi
- >
if [ -d "churn" ]; then
echo "<br/><br/><a href="churn/report.txt">Churn</a>" >> public/index.html
mkdir public/churn
cp -r churn/* public/churn
fi
- >
if [ -d "tmp_artifacts/unit/coverage" ]; then
echo "<br/><br/><a href="unit/coverage/">Unit Tests Coverage</a>" >> public/index.html
mkdir -p public/unit/coverage
cp -r tmp_artifacts/unit/* public/unit
fi
- >
if [ -d "tests/codeception/tests/_output/acceptance.remote.coverage" ]; then
echo "<br/><br/><a href="codeception/coverage/">Codeception Tests Coverage</a>" >> public/index.html
mkdir -p public/codeception/coverage
cp -r tests/codeception/tests/_output/acceptance.remote.coverage/* public/codeception/coverage
fi
pages:
<<: *job-pages
only:
refs:
- master
- main
pages manual:
<<: *job-pages
when: manual
except:
refs:
- master
- main
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment