Build server

Add absolute directory for helper scripts

refs #4067
refs #4213
refs #4099
refs #4098
refs #4214
This commit is contained in:
Marius Hein 2013-06-03 15:13:42 +02:00
parent 420f407df4
commit 0592bff4ef
5 changed files with 37 additions and 12 deletions

View File

@ -1,6 +1,11 @@
#!/bin/sh #!/bin/sh
for filepath in `find ../doc -type f -name "*.md"`; do set -o nounset
SCRIPTNAME=$(readlink -f $0)
DIR=$(dirname $SCRIPTNAME)
for filepath in `find $DIR/../doc -type f -name "*.md"`; do
markdown $filepath > `dirname $filepath`/`basename $filepath .md`.html markdown $filepath > `dirname $filepath`/`basename $filepath .md`.html
done done

View File

@ -1,8 +1,13 @@
#!/bin/sh #!/bin/sh
# Make sure that the destination directory for logs and reports exists set -o nounset
mkdir -p ../../build/log
jshint --reporter=jslint "$@" ../.. > ../../build/log/jshint_results.xml SCRIPTNAME=$(readlink -f $0)
DIR=$(dirname $SCRIPTNAME)
# Make sure that the destination directory for logs and reports exists
mkdir -p $DIR/build/log
jshint --reporter=jslint "$@" ../.. > $DIR/build/log/jshint_results.xml
exit 0 exit 0

View File

@ -1,9 +1,14 @@
#!/bin/sh #!/bin/sh
# Make sure that the destination directory for logs and reports exists set -o nounset
mkdir -p ../../build/log
mocha --reporter "xunit" --recursive "$@" . > ../../build/log/mocha_results.xml SCRIPTNAME=$(readlink -f $0)
mocha --reporter "cobertura" --recursive "$@" . > ../../build/log/mocha_coverage.xml DIR=$(dirname $SCRIPTNAME)
# Make sure that the destination directory for logs and reports exists
mkdir -p $DIR/build/log
mocha --reporter "xunit" --recursive "$@" . > $DIR/build/log/mocha_results.xml
mocha --reporter "cobertura" --recursive "$@" . > $DIR/build/log/mocha_coverage.xml
exit 0 exit 0

View File

@ -1,8 +1,13 @@
#!/bin/sh #!/bin/sh
# Make sure that the destination directory for logs and reports exists set -o nounset
mkdir -p ../../build/log
phpcs -p --standard=PSR2 --extensions=php --encoding=utf-8 --report-checkstyle=../../build/log/phpcs_results.xml --ignore=vendor "$@" ../.. SCRIPTNAME=$(readlink -f $0)
DIR=$(dirname $SCRIPTNAME)
# Make sure that the destination directory for logs and reports exists
mkdir -p $DIR/../../build/log
phpcs -p --standard=PSR2 --extensions=php --encoding=utf-8 --report-checkstyle=$DIR/build/log/phpcs_results.xml --ignore=vendor "$@" ../..
exit 0 exit 0

View File

@ -1,7 +1,12 @@
#!/bin/sh #!/bin/sh
set -o nounset
SCRIPTNAME=$(readlink -f $0)
DIR=$(dirname $SCRIPTNAME)
# Make sure that the destination directory for logs and reports exists # Make sure that the destination directory for logs and reports exists
mkdir -p ../../build/log mkdir -p $DIR/../../build/log
phpunit "$@" . phpunit "$@" .