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
Showing
210 changed files
with
2,251 additions
and
1,996 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 |
---|---|---|
@@ -1,17 +1,20 @@ | ||
* text=auto | ||
|
||
/.github export-ignore | ||
.php_cs export-ignore | ||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
.scrutinizer.yml export-ignore | ||
run-tests.sh export-ignore | ||
phpstan.neon export-ignore | ||
phpunit.xml.dist export-ignore | ||
README.md export-ignore | ||
/src/Integration/ export-ignore | ||
/src/CodeGeneration/Fixtures/ export-ignore | ||
**/*Test.php export-ignore | ||
**/*Stub.php export-ignore | ||
**/*Tests export-ignore | ||
/build export-ignore | ||
/.php_cs export-ignore | ||
/.gitattributes export-ignore | ||
/.gitignore export-ignore | ||
/.scrutinizer.yml export-ignore | ||
/run-tests.sh export-ignore | ||
/phpstan.neon export-ignore | ||
/phpunit.xml.dist export-ignore | ||
/README.md export-ignore | ||
/src/LibraryConsumptionTests/ export-ignore | ||
/src/TestUtilities/ export-ignore | ||
/src/CodeGeneration/ export-ignore | ||
/**/*Test.php export-ignore | ||
/**/*Stub.php export-ignore | ||
/**/Dummy*.php export-ignore | ||
/docs export-ignore | ||
/**/*Tests export-ignore |
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,31 @@ | ||
--- | ||
name: Sub-Split Publishing | ||
on: | ||
push: | ||
branches: | ||
- version/1.0.0 | ||
|
||
jobs: | ||
publish_subsplits: | ||
runs-on: ubuntu-latest | ||
name: Publish package sub-splits | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: '0' | ||
persist-credentials: 'false' | ||
- uses: actions/cache@v2 | ||
id: splitsh | ||
with: | ||
path: build/splitsh-lite | ||
key: ${{ runner.os }}-splitsh-lite | ||
- name: install split.sh | ||
if: steps.splitsh.outputs.cache-hit != 'true' | ||
run: build/install-split.sh | ||
- uses: frankdejonge/use-github-token@1.0.1 | ||
with: | ||
authentication: 'frankdejonge:${{ secrets.PERSONAL_ACCESS_TOKEN }}' | ||
user_name: 'Frank de Jonge' | ||
user_email: 'info@frenky.net' | ||
- name: Publish subsplits | ||
run: build/split.sh |
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,7 +1,8 @@ | ||
vendor/ | ||
.php_cs.cache | ||
coverage/ | ||
coverage.xml | ||
composer.lock | ||
.idea/ | ||
.phpunit.result.cache | ||
/vendor/ | ||
/.php_cs.cache | ||
/.phpunit.result.cache | ||
/coverage/ | ||
/coverage.xml | ||
/composer.lock | ||
/.idea/ | ||
/docs/vendor/ |
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 @@ | ||
splitsh-lite |
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,18 @@ | ||
unameOut="$(uname -s)" | ||
version="v1.0.1" | ||
|
||
case "${unameOut}" in | ||
Linux*) url="https://github.com/splitsh/lite/releases/download/${version}/lite_linux_amd64.tar.gz";; | ||
Darwin*) url="https://github.com/splitsh/lite/releases/download/${version}/lite_darwin_amd64.tar.gz";; | ||
*) url=unknown | ||
esac | ||
|
||
if [ "${url}" == "unknown" ]; then | ||
echo "FAILED"; | ||
exit 1; | ||
fi | ||
|
||
wget -O build/split-lite.tar.gz "${url}" | ||
tar -zxpf build/split-lite.tar.gz --directory ./build/ | ||
chmod +x build/splitsh-lite | ||
rm build/split-lite.tar.gz |
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,7 @@ | ||
If you can't run this file on Catalina, run: | ||
|
||
```bash | ||
xattr -d com.apple.quarantine ./build/splitsh-lite | ||
``` | ||
|
||
For more information, checkout https://github.com/splitsh/lite |
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,72 @@ | ||
#!/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="master" | ||
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 [[ ! -z "$(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 | ||
|
||
# Strip prepended "v", if present | ||
if [[ $VERSION == v* || $VERSION == V* ]] | ||
then | ||
VERSION="${VERSION:1}" | ||
fi | ||
|
||
# Tag Core | ||
git tag $VERSION | ||
git push origin --tags | ||
|
||
# Tag Components | ||
for REMOTE in CodeGeneration TestUtilities | ||
do | ||
echo "" | ||
echo "" | ||
echo "Releasing $REMOTE"; | ||
|
||
TMP_DIR="/tmp/eventsauce-split" | ||
REMOTE_URL="git@github.com:EventSaucePHP/$REMOTE.git" | ||
|
||
rm -rf $TMP_DIR; | ||
mkdir $TMP_DIR; | ||
|
||
( | ||
cd $TMP_DIR; | ||
|
||
git clone $REMOTE_URL . | ||
git checkout "$RELEASE_BRANCH"; | ||
|
||
git tag $VERSION | ||
git push origin --tags | ||
) | ||
done |
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 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
set -x | ||
|
||
|
||
if [ ! -f "./build/splitsh-lite" ]; then | ||
bash build/install-split.sh | ||
fi | ||
|
||
CURRENT_BRANCH="version/1.0.0" | ||
|
||
function split() | ||
{ | ||
SHA1=`./build/splitsh-lite --prefix=$1 --origin=origin/$CURRENT_BRANCH` | ||
git push $2 "$SHA1:refs/heads/$CURRENT_BRANCH" -f | ||
} | ||
|
||
function remote() | ||
{ | ||
git remote add $1 $2 || true | ||
} | ||
|
||
git pull origin $CURRENT_BRANCH | ||
|
||
remote CodeGeneration git@github.com:EventSaucePHP/CodeGeneration.git | ||
remote TestUtilities git@github.com:EventSaucePHP/TestUtilities.git | ||
|
||
split 'src/CodeGeneration' CodeGeneration | ||
split 'src/TestUtilities' TestUtilities |
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
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
Oops, something went wrong.