From d740db25fb01f75284f471500a3c6ced1ba284e5 Mon Sep 17 00:00:00 2001 From: Tobias van Beek Date: Sun, 5 Nov 2023 21:36:48 +0100 Subject: [PATCH] Add a docs job to the ci to use it in a central docs place. --- .gitignore | 1 + .gitlab-ci.yml | 21 ++++++++++++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index ef97c38..615269c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ /.phpunit.result.cache /.phpunit.cache /build/ +/phpunitresult /vendor/ /code-climate.json /composer.lock diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index de3d4f8..b029380 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -78,8 +78,10 @@ test_lowest: # Install composer - rm -f composer.lock - composer update --prefer-lowest - - vendor/bin/phpunit --coverage-text --colors=never --log-junit=phpunitresult/junit.xml $EXCLUDE_GROUP + - vendor/bin/phpunit --coverage-text --colors=never --log-junit=phpunitresult/junit.xml --testdox-html=phpunitresult/testdox.html $EXCLUDE_GROUP artifacts: + paths: + - phpunitresult reports: junit: phpunitresult/junit.xml dependencies: @@ -112,3 +114,20 @@ test: - prepare_cache needs: - prepare_cache + +combine_docs: + stage: report + script: + - rm docs/*.php + - cp README.md docs/README.md + - cp CHANGELOG.md docs/CHANGELOG.md + - cp CONTRIBUTING.md docs/CONTRIBUTING.md + - cp LICENSE.md docs/LICENSE.md + - cp phpunitresult/testdox.html docs/testdox.html + artifacts: + paths: + - docs/ + dependencies: + - test_lowest + needs: + - test_lowest \ No newline at end of file