Skip to content

Commit

Permalink
Add a docs job to the ci to use it in a central docs place.
Browse files Browse the repository at this point in the history
  • Loading branch information
tvbeek committed Nov 5, 2023
1 parent fa7b0cf commit d740db2
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/.phpunit.result.cache
/.phpunit.cache
/build/
/phpunitresult
/vendor/
/code-climate.json
/composer.lock
Expand Down
21 changes: 20 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

0 comments on commit d740db2

Please sign in to comment.