-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* buddy.works free plan is useless, lets try circle.ci again: we have gone full circle... * switch to circle.ci badge * Merge remote-tracking branch 'origin/v4' into v4
- Loading branch information
1 parent
dd45dc7
commit e07c2ab
Showing
5 changed files
with
37 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# PHP CircleCI 2.0 configuration file | ||
# See: https://circleci.com/docs/2.0/language-php/ | ||
version: 2 | ||
|
||
# Define a job to be invoked later in a workflow. | ||
# See: https://circleci.com/docs/2.0/configuration-reference/#jobs | ||
jobs: | ||
build: | ||
working_directory: /app | ||
docker: | ||
- image: ghcr.io/danielme85/lltdb-testbench | ||
- image: mariadb:latest | ||
environment: | ||
MYSQL_DATABASE: 'logtodb' | ||
MYSQL_ROOT_PASSWORD: 'root' | ||
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes' | ||
- image: mongo:latest | ||
steps: | ||
- checkout | ||
- setup_remote_docker: | ||
docker_layer_caching: true | ||
- run: | ||
name: Run tests | ||
command: | | ||
cp .env.testing .env | ||
composer install --no-interaction | ||
composer dump-autoload | ||
dockerize -wait tcp://localhost:3306 -timeout 1m && | ||
php -dpcov.enabled=1 -dpcov.directory="./src" -dpcov.exclude="~vendor~" ./vendor/bin/phpunit --coverage-clover coverage.xml | ||
curl -Os https://uploader.codecov.io/latest/linux/codecov | ||
chmod +x codecov | ||
./codecov -t $CODECOV_TOKEN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
DB_CONNECTION=mysql | ||
DB_HOST=mariadb | ||
DB_HOST=127.0.0.1 | ||
DB_PORT=3306 | ||
DB_DATABASE=logtodb | ||
DB_USERNAME=root | ||
DB_PASSWORD=root | ||
MDB_DATABASE=logtodb | ||
MDB_HOST=mongo | ||
MDB_HOST=127.0.0.1 | ||
MDB_PORT=27017 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/bash | ||
echo "Building PHP8 image..." && | ||
cd ./docker/php8 && docker build . -t ghcr.io/danielme85/lltdb-testbench:latest | ||
cd ./docker/php8 && docker buildx build --platform linux/amd64,linux/arm64 --push . -t ghcr.io/danielme85/lltdb-testbench:latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
version: "2.4" | ||
version: "3.0" | ||
services: | ||
|
||
mariadb: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters