mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-02-16 02:38:41 +00:00
Preparing for coverage reports
This commit is contained in:
parent
88bf2ec7a2
commit
11069392b0
|
|
@ -6,7 +6,7 @@
|
||||||
. ${ROOT_PATH}/${BUILD_PATH}/setup.sh
|
. ${ROOT_PATH}/${BUILD_PATH}/setup.sh
|
||||||
|
|
||||||
# Executing unit tests
|
# Executing unit tests
|
||||||
php ${ROOT_PATH}/phpunit.phar --configuration ${ROOT_PATH}/${TEST_PATH}/PHPUnit/phpunit_default.xml --coverage-text --coverage-clover ${ROOT_PATH}/${BUILD_PATH}/logs/clover.xml > ${ROOT_PATH}/${BUILD_PATH}/logs/phpunit.log
|
php ${ROOT_PATH}/phpunit.phar --configuration ${ROOT_PATH}/${TEST_PATH}/PHPUnit/phpunit_default.xml > ${ROOT_PATH}/${BUILD_PATH}/logs/phpunit.log
|
||||||
|
|
||||||
# Stats & metrics
|
# Stats & metrics
|
||||||
php ${ROOT_PATH}/phploc.phar ${ROOT_PATH}/phpOMS/ > ${ROOT_PATH}/${BUILD_PATH}/stats/phpOMS.log
|
php ${ROOT_PATH}/phploc.phar ${ROOT_PATH}/phpOMS/ > ${ROOT_PATH}/${BUILD_PATH}/stats/phpOMS.log
|
||||||
|
|
|
||||||
2
setup.sh
2
setup.sh
|
|
@ -7,11 +7,13 @@
|
||||||
rm -r -f ${ROOT_PATH}/${BUILD_PATH}/logs
|
rm -r -f ${ROOT_PATH}/${BUILD_PATH}/logs
|
||||||
rm -r -f ${ROOT_PATH}/${BUILD_PATH}/stats
|
rm -r -f ${ROOT_PATH}/${BUILD_PATH}/stats
|
||||||
rm -r -f ${ROOT_PATH}/${BUILD_PATH}/docs
|
rm -r -f ${ROOT_PATH}/${BUILD_PATH}/docs
|
||||||
|
rm -r -f ${ROOT_PATH}/${BUILD_PATH}/report
|
||||||
|
|
||||||
# Creating directories
|
# Creating directories
|
||||||
mkdir -p ${ROOT_PATH}/${BUILD_PATH}/logs
|
mkdir -p ${ROOT_PATH}/${BUILD_PATH}/logs
|
||||||
mkdir -p ${ROOT_PATH}/${BUILD_PATH}/stats >> ${ROOT_PATH}/${BUILD_PATH}/logs/build.log
|
mkdir -p ${ROOT_PATH}/${BUILD_PATH}/stats >> ${ROOT_PATH}/${BUILD_PATH}/logs/build.log
|
||||||
mkdir -p ${ROOT_PATH}/${BUILD_PATH}/docs >> ${ROOT_PATH}/${BUILD_PATH}/logs/build.log
|
mkdir -p ${ROOT_PATH}/${BUILD_PATH}/docs >> ${ROOT_PATH}/${BUILD_PATH}/logs/build.log
|
||||||
|
mkdir -p ${ROOT_PATH}/${BUILD_PATH}/report >> ${ROOT_PATH}/${BUILD_PATH}/logs/build.log
|
||||||
|
|
||||||
# Handling git
|
# Handling git
|
||||||
cd ${ROOT_PATH} && git fetch --all && git reset --hard origin/${GIT_BRANCH} && git pull >> ${ROOT_PATH}/${BUILD_PATH}/logs/build.log
|
cd ${ROOT_PATH} && git fetch --all && git reset --hard origin/${GIT_BRANCH} && git pull >> ${ROOT_PATH}/${BUILD_PATH}/logs/build.log
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user