Make Git ignore build/* and create it as needed.

refs #4068
refs #4070
refs #4098
refs #4099
This commit is contained in:
Johannes Meyer 2013-06-03 10:36:27 +02:00
parent 5b58c07e28
commit ee63f3fbd8
6 changed files with 13 additions and 7 deletions

3
.gitignore vendored
View File

@ -1,2 +1 @@
/build/log/*
!/build/log/README
/build/*

View File

@ -1,5 +0,0 @@
The purpose for this directory is to store temporary logs and
reports by test-runner, style-checkers or build-routines.
"temporary" means in this case that the contents of this directory
are completely ignored by Git.

View File

@ -1,5 +1,8 @@
#!/bin/sh
# Make sure that the destination directory for logs and reports exists
mkdir -p ../../build/log
jshint --reporter=jslint "$@" ../.. > ../../build/log/jshint_results.xml
exit 0

View File

@ -1,5 +1,8 @@
#!/bin/sh
# Make sure that the destination directory for logs and reports exists
mkdir -p ../../build/log
mocha --reporter "xunit" --recursive "$@" . > ../../build/log/mocha_results.xml
mocha --reporter "cobertura" --recursive "$@" . > ../../build/log/mocha_coverage.xml

View File

@ -1,5 +1,8 @@
#!/bin/sh
# Make sure that the destination directory for logs and reports exists
mkdir -p ../../build/log
phpcs -p --standard=PSR2 --extensions=php --encoding=utf-8 --report-checkstyle=../../build/log/phpcs_results.xml --ignore=vendor "$@" ../..
exit 0

View File

@ -1,5 +1,8 @@
#!/bin/sh
# Make sure that the destination directory for logs and reports exists
mkdir -p ../../build/log
phpunit "$@" .
exit 0