Merge branch 'feature/build-server-integration-4067'

Conflicts:
	.gitignore
This commit is contained in:
Marius Hein 2013-06-04 11:40:20 +02:00
commit 5df14b41e1
9 changed files with 115 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
build/
.idea/ .idea/
config.log config.log

12
bin/createdoc.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/sh
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
done
exit 0

1
test/js/.jshintignore Normal file
View File

@ -0,0 +1 @@
../../library/vendor/**

6
test/js/.jshintrc Normal file
View File

@ -0,0 +1,6 @@
/* See http://www.jshint.com/docs/#usage on how to use this file */
{
}

13
test/js/checkswag.sh Executable file
View File

@ -0,0 +1,13 @@
#!/bin/sh
set -o nounset
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/../.. > $DIR/../../build/log/jshint_results.xml
exit 0

14
test/js/runtests.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/sh
set -o nounset
SCRIPTNAME=$(readlink -f $0)
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

24
test/php/checkswag.sh Executable file
View File

@ -0,0 +1,24 @@
#!/bin/sh
set -o nounset
SCRIPTNAME=$(readlink -f $0)
DIR=$(dirname $SCRIPTNAME)
PHPCS=$(which phpcs)
if [[ ! -x $PHPCS ]]; then
echo "PHPCS not found!"
exit 1
fi
# 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 \
"$@" \
$DIR/../../application \
$DIR/../../library/Icinga \
$DIR/../../bin
exit 0

22
test/php/phpunit.xml Normal file
View File

@ -0,0 +1,22 @@
<phpunit backupGlobals="true"
backupStaticAttributes="true"
colors="false"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
forceCoversAnnotation="false"
processIsolation="false"
stopOnError="false"
stopOnFailure="false"
stopOnIncomplete="false"
stopOnSkipped="false"
strict="false"
verbose="false">
<logging>
<log type="coverage-clover" target="../../build/log/phpunit_coverage.xml"/>
<log type="junit" target="../../build/log/phpunit_results.xml" logIncompleteSkipped="true"/>
</logging>
</phpunit>

21
test/php/runtests.sh Executable file
View File

@ -0,0 +1,21 @@
#!/bin/sh
set -o nounset
SCRIPTNAME=$(readlink -f $0)
DIR=$(dirname $SCRIPTNAME)
PHPUNIT=$(which phpunit)
if [[ ! -x $PHPUNIT ]]; then
echo "PHPUnit not found!"
exit 1
fi
# Make sure that the destination directory for logs and reports exists
mkdir -p $DIR/../../build/log
cd $DIR
$PHPUNIT "$@" .
exit 0