-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from sunrise-php/release/v3.0.0
v3.0.0
- Loading branch information
Showing
75 changed files
with
5,636 additions
and
2,542 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,30 @@ | ||
# PHP CircleCI 2.0 configuration file | ||
# | ||
# Check https://circleci.com/docs/2.0/language-php/ for more details | ||
# | ||
version: 2 | ||
jobs: | ||
php74: | ||
docker: | ||
- image: circleci/php:7.4-cli-node-browsers | ||
steps: | ||
- checkout | ||
- run: php -v | ||
- run: cp .env.example .env | ||
- run: composer install --no-interaction --prefer-source --no-suggest | ||
- run: php vendor/bin/phpunit --colors=always | ||
php80: | ||
docker: | ||
- image: circleci/php:8.0-cli-node-browsers | ||
steps: | ||
- checkout | ||
- run: php -v | ||
- run: cp .env.example .env | ||
- run: composer install --no-interaction --prefer-source --no-suggest | ||
- run: php vendor/bin/phpunit --colors=always | ||
workflows: | ||
version: 2 | ||
build: | ||
jobs: | ||
- php74 | ||
- php80 |
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
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,14 +1,47 @@ | ||
APP_ENV=dev | ||
APP_DISPLAY_ERRORS=1 | ||
# | ||
# The application URL | ||
# | ||
# Must contain scheme, host and port (if not standard) | ||
# | ||
APP_URL="http://localhost:3000" | ||
|
||
DATABASE_URL="mysql://user:[email protected]:3306/acme" | ||
# | ||
# The application environment | ||
# | ||
# Use only the following values: dev, test, stage or prod | ||
# | ||
APP_ENV="dev" | ||
|
||
# | ||
# If set to 1, debug info will be logged | ||
# | ||
# In the production MUST be set to 0 | ||
# | ||
APP_DEBUG=1 | ||
|
||
# | ||
# If set to 1, fatal errors will not be displayed | ||
# | ||
# In the production MUST be set to 1 | ||
# | ||
APP_SILENT=0 | ||
|
||
# | ||
# Database server address to which you will write | ||
# | ||
DB_MASTER_URL="mysql://user:password@localhost:3306/acme?charset=utf8mb4" | ||
|
||
# | ||
# Database server address from which you will read | ||
# | ||
# If replication is not configured, just duplicate the address of the master server | ||
# | ||
DB_SLAVE_URL="mysql://user:password@localhost:3306/acme?charset=utf8mb4" | ||
|
||
# | ||
# Telegram logging | ||
# | ||
TELEGRAM_URL="https://api.telegram.org" | ||
TELEGRAM_TOKEN= | ||
TELEGRAM_RECIPIENT= | ||
TELEGRAM_LEVEL=ERROR | ||
|
||
CORS_DEBUG=1 | ||
CORS_SERVER_ORIGIN_SCHEME=http | ||
CORS_SERVER_ORIGIN_HOST="127.0.0.1" | ||
CORS_SERVER_ORIGIN_PORT=3000 | ||
TELEGRAM_TOKEN="" | ||
TELEGRAM_RECIPIENT="" | ||
TELEGRAM_LEVEL="ERROR" |
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,5 @@ | ||
*.php.dev linguist-language=PHP | ||
*.php.test linguist-language=PHP | ||
*.php.stage linguist-language=PHP | ||
*.php.prod linguist-language=PHP | ||
*.php.local linguist-language=PHP |
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,14 @@ | ||
/.down | ||
/.env | ||
/.php_cs.cache | ||
/.phpunit.result.cache | ||
/.rr.yml | ||
/coverage.xml | ||
/phpbench.json | ||
/phpcs.xml | ||
/phpunit.xml | ||
/cache/* | ||
/config/definitions/*.php.local | ||
/tests/db/*.sqlite | ||
/vendor/ | ||
!.gitkeep |
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
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
This file was deleted.
Oops, something went wrong.
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
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
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,14 @@ | ||
#!/bin/bash | ||
|
||
bash bin/down 'deploying' | ||
|
||
git fetch --tags | ||
git checkout $(git describe --tags $(git rev-list --tags --max-count=1)) | ||
|
||
find cache/ -type f -not -name '.gitkeep' -delete | ||
composer install --no-dev --classmap-authoritative | ||
|
||
php bin/app migrations:migrate --service 'master' --no-interaction | ||
php bin/app orm:generate-proxies --service 'master' | ||
|
||
bash bin/up |
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,3 @@ | ||
#!/bin/bash | ||
|
||
echo $1 > .down |
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,3 @@ | ||
#!/bin/bash | ||
|
||
rm -f .down |
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,11 @@ | ||
#!/bin/bash | ||
|
||
VERSION=$(git describe --tags --abbrev=0 2> /dev/null) | ||
|
||
if [ $? -eq 0 ]; then | ||
echo $VERSION | sed 's/^v//' | ||
else | ||
echo '0.1.0-dev' | ||
fi | ||
|
||
exit 0 |
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
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,4 @@ | ||
#!/usr/bin/env php | ||
<?php | ||
|
||
echo 'Coming soon...', PHP_EOL; |
File renamed without changes.
Oops, something went wrong.