-
-
Notifications
You must be signed in to change notification settings - Fork 80
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
70 changed files
with
514 additions
and
303 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
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,6 +1,7 @@ | ||
vendor/ | ||
.php_cs.cache | ||
.phpunit.result.cache | ||
coverage/ | ||
coverage.xml | ||
composer.lock | ||
.idea/ | ||
.idea/ |
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 @@ | ||
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,22 @@ | ||
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="2.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 [[ ! -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="master" | ||
|
||
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
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.