Merge branch 'feature/build-server-integration-4067'
Conflicts: .gitignore
This commit is contained in:
commit
5df14b41e1
|
@ -1,2 +1,3 @@
|
|||
build/
|
||||
.idea/
|
||||
config.log
|
||||
config.log
|
|
@ -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
|
|
@ -0,0 +1 @@
|
|||
../../library/vendor/**
|
|
@ -0,0 +1,6 @@
|
|||
/* See http://www.jshint.com/docs/#usage on how to use this 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
|
|
@ -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
|
|
@ -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
|
|
@ -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>
|
||||
|
|
@ -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
|
Loading…
Reference in New Issue