Run Test units

This commit is contained in:
MiltonPM
2019-06-14 09:13:19 -04:00
parent 5de4f88c4f
commit cc9d56f07d

View File

@@ -11,7 +11,6 @@ jobs:
- /KR.*/
steps:
- checkout
- run: ls -la /tmp/
- run: service mysqld restart
- run: mysql -u root -ppassword -e "create database test;"
- run: composer install
@@ -19,15 +18,8 @@ jobs:
name: Run Test Units
command: |
set -e
find tests/ -name "*Test.php" > tests.list
input="tests.list"
#while IFS= read -r line
#do
#if [ $line != "tests/unit/workflow/engine/src/ProcessMaker/BusinessModel/SkinsTest.php" ] && [ $line != "tests/unit/workflow/engine/src/ProcessMaker/BusinessModel/LanguageTest.php" ];
#then
vendor/phpunit/phpunit/phpunit --coverage-xml ./coverage tests/unit/workflow/engine/src/ProcessMaker/Model/DelegationTest.php
#fi
#done < "$input"
mkdir coverage
vendor/phpunit/phpunit/phpunit --coverage-php coverage/result.php tests/unit/workflow/engine/src/ProcessMaker/Model/DelegationTest.php
- run: ls -la coverage
- run: mysql -u root -ppassword -e "use test; show tables;"
- store_artifacts: