File tree Expand file tree Collapse file tree 1 file changed +33
-5
lines changed
Expand file tree Collapse file tree 1 file changed +33
-5
lines changed Original file line number Diff line number Diff line change 88 - image : circleci/mariadb:latest
99 environment :
1010 MYSQL_ALLOW_EMPTY_PASSWORD : ' yes'
11- MYSQL_ROOT_PASSWORD : ' '
11+ DB_HOST : 127.0.0.1
1212
1313 working_directory : ~/app
1414 steps :
1515 - checkout
1616 - run :
1717 name : Wait for Database Connection
1818 command : dockerize -wait tcp://localhost:3306 -timeout 1m
19- - run : mysql -h 127.0.0.1 -u root -e "create database testing "
20-
19+ - run : mysql -h 127.0.0.1 -u root -e "create database logtodb "
20+
2121 - run : composer install --no-interaction
2222 - run : composer require jenssegers/mongodb --dev
2323 - run : composer require pcov/clobber --dev
24-
24+ - run :
25+ name : Run phpunit
26+ command : XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-clover=coverage.xml
27+
28+ - run :
29+ name : Upload coverage report
30+ command : curl -s https://codecov.io/bash > ./codecov.sh && chmod +x ./codecov.sh && ./codecov.sh
31+ test8 :
32+ docker :
33+ - image : danielme/laravel-circleci-php8:latest
34+ - image : circleci/mongo:latest
35+ - image : circleci/mariadb:latest
36+ environment :
37+ MYSQL_ALLOW_EMPTY_PASSWORD : ' yes'
38+ DB_HOST : 127.0.0.1
39+
40+ working_directory : ~/app
41+ steps :
42+ - checkout
43+ - run :
44+ name : Wait for Database Connection
45+ command : dockerize -wait tcp://localhost:3306 -timeout 1m
46+ - run : mysql -h 127.0.0.1 -u root -e "create database logtodb"
47+
48+ - run : composer install --no-interaction
49+ - run : composer require jenssegers/mongodb --dev
50+ - run : composer require pcov/clobber --dev
51+
2552 - run :
2653 name : Run phpunit
2754 command : XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-clover=coverage.xml
3259workflows :
3360 test :
3461 jobs :
35- - test
62+ - test
63+ - test8
You can’t perform that action at this time.
0 commit comments