-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
41b5ca6
commit 9246a4e
Showing
7 changed files
with
95 additions
and
41 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
# Make sure the release tag is provided. | ||
if (( "$#" != 1 )) | ||
then | ||
echo "Tag has to be provided." | ||
|
||
exit 1 | ||
fi | ||
|
||
RELEASE_BRANCH="7.x" | ||
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD) | ||
VERSION=$1 | ||
|
||
# Make sure current branch and release branch match. | ||
if [[ "$RELEASE_BRANCH" != "$CURRENT_BRANCH" ]] | ||
then | ||
echo "Release branch ($RELEASE_BRANCH) does not match the current active branch ($CURRENT_BRANCH)." | ||
exit 1 | ||
fi | ||
|
||
# Make sure the working directory is clear. | ||
if [[ -n "$(git status --porcelain)" ]] | ||
then | ||
echo "Your working directory is dirty. Did you forget to commit your changes?" | ||
exit 1 | ||
fi | ||
|
||
# Make sure latest changes are fetched first. | ||
git fetch origin | ||
|
||
# Make sure that release branch is in sync with origin. | ||
if [[ $(git rev-parse HEAD) != $(git rev-parse origin/$RELEASE_BRANCH) ]] | ||
then | ||
echo "Your branch is out of date with its upstream. Did you forget to pull or push any changes before releasing?" | ||
exit 1 | ||
fi | ||
|
||
# Always prepend with "v" | ||
if [[ $VERSION != v* ]] | ||
then | ||
VERSION="v$VERSION" | ||
fi | ||
|
||
# Tag Package | ||
git tag "$VERSION" | ||
git push origin --tags |
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,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
PHP_VERSION="8.2" | ||
|
||
if ! docker info > /dev/null 2>&1; then | ||
echo "Please start docker first" | ||
exit 0 | ||
fi | ||
|
||
echo "Running pint..." | ||
if ! docker run -it --rm -v "$PWD":/app -w /app php:"$PHP_VERSION"-cli php vendor/bin/pint; then | ||
exit 1 | ||
fi | ||
|
||
echo "Running phpstan..." | ||
if ! docker run -it --rm -v "$PWD":/app -w /app php:"$PHP_VERSION"-cli php vendor/bin/phpstan analyse; then | ||
exit 1 | ||
fi | ||
|
||
echo "Running phpunit..." | ||
if ! docker run -it --rm -v "$PWD":/app -w /app php:"$PHP_VERSION"-cli php vendor/bin/phpunit; then | ||
exit 1 | ||
fi |
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,13 @@ | ||
# `beyond:make:model` | ||
Creates a new model. | ||
|
||
## Signature | ||
`beyond:make:model {name} {--force}` | ||
|
||
| Parameters | Description | | ||
|------------|------------------------| | ||
| name | The name of your model | | ||
|
||
| Flags | Description | | ||
|---------|-------------------------| | ||
| --force | Overwrite existing file | |