Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build script now fails if PHP doc is incorrect or contais errors #20

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,15 @@ if ./vendor/bin/phpunit --testdox ./tests/; then
rm -rf ./doc/generated
mkdir ./doc/generated
echo 'Generate Documentation'
php ./tools/sami.phar update ./doc/config.php
rm -rf ./cache
if php ./tools/sami.phar -v update ./doc/config.php; then
echo "$(tput setaf 2)Documentation Generated Successfully$(tput sgr 0)"
rm -rf ./cache
else
echo "$(tput setaf 1)Documentation Generation Failed$(tput sgr 0)"
rm -rf ./doc/generated
rm -rf ./cache
exit 1
fi
else
exit 1
fi
1 change: 0 additions & 1 deletion doc/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
->exclude('Proto')
->in('./lib');

echo "@@@@ " . __DIR__.'/generated';
return new Sami($iterator, array(
'build_dir' => __DIR__.'/generated'
));