Run Test units

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

View File

@@ -11,23 +11,15 @@ jobs:
- /KR.*/ - /KR.*/
steps: steps:
- checkout - checkout
- run: ls -la /tmp/
- run: service mysqld restart - run: service mysqld restart
- run: mysql -u root -ppassword -e "create database test;" - run: mysql -u root -ppassword -e "create database test;"
- run: composer install - run: composer install
- run: - run:
name: Run Test Units name: Run Test Units
command: | command: |
set -e set -e
find tests/ -name "*Test.php" > tests.list mkdir coverage
input="tests.list" vendor/phpunit/phpunit/phpunit --coverage-php coverage/result.php tests/unit/workflow/engine/src/ProcessMaker/Model/DelegationTest.php
#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"
- run: ls -la coverage - run: ls -la coverage
- run: mysql -u root -ppassword -e "use test; show tables;" - run: mysql -u root -ppassword -e "use test; show tables;"
- store_artifacts: - store_artifacts: