mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 16:54:04 +02:00
Merge branch 'feature/build-server-integration-4067'
Conflicts: .gitignore
This commit is contained in:
commit
5df14b41e1
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,2 +1,3 @@
|
||||
build/
|
||||
.idea/
|
||||
config.log
|
||||
config.log
|
12
bin/createdoc.sh
Executable file
12
bin/createdoc.sh
Executable 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
1
test/js/.jshintignore
Normal file
@ -0,0 +1 @@
|
||||
../../library/vendor/**
|
6
test/js/.jshintrc
Normal file
6
test/js/.jshintrc
Normal 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
13
test/js/checkswag.sh
Executable 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
14
test/js/runtests.sh
Executable 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
24
test/php/checkswag.sh
Executable 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
22
test/php/phpunit.xml
Normal 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
21
test/php/runtests.sh
Executable 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
|
Loading…
x
Reference in New Issue
Block a user