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 8
8
- image : circleci/mariadb:latest
9
9
environment :
10
10
MYSQL_ALLOW_EMPTY_PASSWORD : ' yes'
11
- MYSQL_ROOT_PASSWORD : ' '
11
+ DB_HOST : 127.0.0.1
12
12
13
13
working_directory : ~/app
14
14
steps :
15
15
- checkout
16
16
- run :
17
17
name : Wait for Database Connection
18
18
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
+
21
21
- run : composer install --no-interaction
22
22
- run : composer require jenssegers/mongodb --dev
23
23
- 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
+
25
52
- run :
26
53
name : Run phpunit
27
54
command : XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-clover=coverage.xml
32
59
workflows :
33
60
test :
34
61
jobs :
35
- - test
62
+ - test
63
+ - test8
You can’t perform that action at this time.
0 commit comments