add debug mode as param + use params in phpunit.sh

This commit is contained in:
odain
2019-11-29 16:46:59 +01:00
parent 1b168501af
commit 50dddaaa9b
2 changed files with 15 additions and 3 deletions

View File

@@ -3,6 +3,17 @@ set -x
cd test
export DEBUG_UNIT_TEST="0"
export DEBUG_UNIT_TEST=0
RUN_NONREG_TESTS=0
php vendor/bin/phpunit --log-junit ../var/test/phpunit-log.junit.xml --teamcity
if [ $# -ge 1 ]
then
export DEBUG_UNIT_TEST=$1
fi
if [ $# -ge 2 ]
then
RUN_NONREG_TESTS=$2
fi
#php vendor/bin/phpunit --log-junit ../var/test/phpunit-log.junit.xml --teamcity

3
Jenkinsfile vendored
View File

@@ -1,6 +1,7 @@
pipeline {
agent any
parameters {
string(name: 'DEBUG_UNIT_TEST', defaultValue: '0', description: 'Debug mode?')
string(name: 'RUN_NON_REG_TESTS', defaultValue: '0', description: 'Do You want to run legacy OQL regression tests?')
}
stages {
@@ -39,7 +40,7 @@ pipeline {
parallel {
stage('phpunit') {
steps {
sh './.jenkins/bin/tests/phpunit.sh ${params.RUN_NON_REG_TESTS}'
sh './.jenkins/bin/tests/phpunit.sh ${params.DEBUG_UNIT_TEST} ${params.RUN_NON_REG_TESTS}'
}
}
}