Skip to content

Commit 60ae2f4

Browse files
author
Daniel Mellum
committed
test some circleCi changes.
1 parent be3ee17 commit 60ae2f4

File tree

1 file changed

+33
-5
lines changed

1 file changed

+33
-5
lines changed

.circleci/config.yml

Lines changed: 33 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,47 @@ jobs:
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
@@ -32,4 +59,5 @@ jobs:
3259
workflows:
3360
test:
3461
jobs:
35-
- test
62+
- test
63+
- test8

0 commit comments

Comments
 (0)