1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-29 10:39:19 +02:00

[ticket/16587] Clean the TravisCI Doctum script and update build file

PHPBB3-16587
This commit is contained in:
William Desportes 2020-09-02 13:04:14 +02:00
parent 322f8eabd6
commit 4dada87d32
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889
2 changed files with 15 additions and 4 deletions

View File

@ -128,13 +128,13 @@
<!-- Builds docs for current branch into build/api/output/master -->
<target name="docs">
<exec dir="."
command="phpBB/vendor/bin/sami.php update build/sami-checkout.conf.php"
command="php doctum.phar update build/doctum-checkout.conf.php"
passthru="true" />
</target>
<!-- Builds docs for multiple branches/tags into build/api/output/$branch -->
<target name="docs-all">
<exec dir="."
command="phpBB/vendor/bin/sami.php update build/sami-all.conf.php"
command="php doctum.phar update build/doctum-all.conf.php"
passthru="true" />
</target>

View File

@ -16,6 +16,17 @@ NOTESTS=$3
if [ "$NOTESTS" == '1' ]
then
(cd phpBB/vendor/bin/ && curl -O https://doctum.long-term.support/releases/latest/doctum.phar && chmod +x doctum.phar)
php phpBB/vendor/bin/doctum.phar parse build/doctum-checkout.conf.php -v
if [ ! -f doctum.phar ]; then
# Download the latest release
curl -O https://doctum.long-term.support/releases/5.1/doctum.phar
rm -f doctum.phar.sha256
curl -O https://doctum.long-term.support/releases/5.1/doctum.phar.sha256
sha256sum --strict --check doctum.phar.sha256
rm -f doctum.phar.sha256
# You can fetch the latest (5.1.x) version code here:
# https://doctum.long-term.support/releases/5.1/VERSION
fi
# Show the version to inform users of the script
php doctum.phar --version
php doctum.phar parse build/doctum-checkout.conf.php -v
fi