Skip to content

Commit a8cf8a9

Browse files
authored
Replaced symplify/monorepo-builder with bash scripts using splitsh (#55)
1 parent ab8531b commit a8cf8a9

File tree

7 files changed

+99
-41
lines changed

7 files changed

+99
-41
lines changed

.github/workflows/tests.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ jobs:
4242
composer require --quiet --no-update "symfony/process:${{ matrix.symfony-version }}"
4343
composer require --quiet --no-update "symfony/serializer:${{ matrix.symfony-version }}"
4444
composer require --quiet --no-update "symfony/validator:${{ matrix.symfony-version }}"
45-
composer remove --quiet --no-update "symplify/monorepo-builder" --dev
4645
composer update --no-interaction --no-progress --no-suggest
4746
4847
- name: "Run tests with phpunit/phpunit"
@@ -77,7 +76,6 @@ jobs:
7776
composer require --quiet --no-update "symfony/process:${{ matrix.symfony-version }}"
7877
composer require --quiet --no-update "symfony/serializer:${{ matrix.symfony-version }}"
7978
composer require --quiet --no-update "symfony/validator:${{ matrix.symfony-version }}"
80-
composer remove --quiet --no-update "symplify/monorepo-builder" --dev
8179
composer update --no-interaction --no-progress --no-suggest
8280
8381
- name: "Run static analyzis with phpstan/phpstan"
@@ -112,7 +110,6 @@ jobs:
112110
composer require --quiet --no-update "symfony/process:${{ matrix.symfony-version }}"
113111
composer require --quiet --no-update "symfony/serializer:${{ matrix.symfony-version }}"
114112
composer require --quiet --no-update "symfony/validator:${{ matrix.symfony-version }}"
115-
composer remove --quiet --no-update "symplify/monorepo-builder" --dev
116113
composer update --no-interaction --no-progress --no-suggest
117114
118115
- name: "Run checkstyle with squizlabs/php_codesniffer"
@@ -147,7 +144,6 @@ jobs:
147144
composer require --quiet --no-update "symfony/process:${{ matrix.symfony-version }}"
148145
composer require --quiet --no-update "symfony/serializer:${{ matrix.symfony-version }}"
149146
composer require --quiet --no-update "symfony/validator:${{ matrix.symfony-version }}"
150-
composer remove --quiet --no-update "symplify/monorepo-builder" --dev
151147
composer update --no-interaction --no-progress --no-suggest
152148
153149
- name: "Run tests with phpunit/phpunit"

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@
3434
"phpunit/phpunit": "^9.5",
3535
"squizlabs/php_codesniffer": "^3.6",
3636
"symfony/filesystem": "^5.0|^6.0",
37-
"symfony/process": "^5.0|^6.0",
38-
"symplify/monorepo-builder": "^8.2"
37+
"symfony/process": "^5.0|^6.0"
3938
},
4039
"replace": {
4140
"yokai/batch": "self.version",

monorepo-builder.php

Lines changed: 0 additions & 33 deletions
This file was deleted.

scripts/split-branch

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
set -x
5+
6+
# Make sure the branch is provided.
7+
if (( "$#" != 1 ))
8+
then
9+
echo "Branch has to be provided."
10+
11+
exit 1
12+
fi
13+
14+
BRANCH=$1
15+
16+
function split()
17+
{
18+
SHA1=`./scripts/splitsh-lite --prefix=$1`
19+
git push $2 "$SHA1:refs/heads/$BRANCH" -f
20+
}
21+
22+
function remote()
23+
{
24+
git remote add $1 $2 || true
25+
}
26+
27+
remote batch git@github.com:yokai-php/batch.git
28+
remote batch-box-spout git@github.com:yokai-php/batch-box-spout.git
29+
remote batch-doctrine-dbal git@github.com:yokai-php/batch-doctrine-dbal.git
30+
remote batch-doctrine-orm git@github.com:yokai-php/batch-doctrine-orm.git
31+
remote batch-doctrine-persistence git@github.com:yokai-php/batch-doctrine-persistence.git
32+
remote batch-symfony-console git@github.com:yokai-php/batch-symfony-console.git
33+
remote batch-symfony-framework git@github.com:yokai-php/batch-symfony-framework.git
34+
remote batch-symfony-messenger git@github.com:yokai-php/batch-symfony-messenger.git
35+
remote batch-symfony-pack git@github.com:yokai-php/batch-symfony-pack.git
36+
remote batch-symfony-serializer git@github.com:yokai-php/batch-symfony-serializer.git
37+
remote batch-symfony-validator git@github.com:yokai-php/batch-symfony-validator.git
38+
39+
split 'src/batch' batch
40+
split 'src/batch-box-spout' batch-box-spout
41+
split 'src/batch-doctrine-dbal' batch-doctrine-dbal
42+
split 'src/batch-doctrine-orm' batch-doctrine-orm
43+
split 'src/batch-doctrine-persistence' batch-doctrine-persistence
44+
split 'src/batch-symfony-console' batch-symfony-console
45+
split 'src/batch-symfony-framework' batch-symfony-framework
46+
split 'src/batch-symfony-messenger' batch-symfony-messenger
47+
split 'src/batch-symfony-pack' batch-symfony-pack
48+
split 'src/batch-symfony-serializer' batch-symfony-serializer
49+
split 'src/batch-symfony-validator' batch-symfony-validator

scripts/split-tag

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
#!/usr/bin/env bash
2+
3+
set -e
4+
set -x
5+
6+
# Make sure the tag is provided.
7+
if (( "$#" != 1 ))
8+
then
9+
echo "Tag has to be provided."
10+
11+
exit 1
12+
fi
13+
14+
TAG=$1
15+
16+
function split()
17+
{
18+
SHA1=`./scripts/splitsh-lite --prefix=$1`
19+
git push $2 "$SHA1:refs/tags/$TAG" -f
20+
}
21+
22+
function remote()
23+
{
24+
git remote add $1 $2 || true
25+
}
26+
27+
remote batch git@github.com:yokai-php/batch.git
28+
remote batch-box-spout git@github.com:yokai-php/batch-box-spout.git
29+
remote batch-doctrine-dbal git@github.com:yokai-php/batch-doctrine-dbal.git
30+
remote batch-doctrine-orm git@github.com:yokai-php/batch-doctrine-orm.git
31+
remote batch-doctrine-persistence git@github.com:yokai-php/batch-doctrine-persistence.git
32+
remote batch-symfony-console git@github.com:yokai-php/batch-symfony-console.git
33+
remote batch-symfony-framework git@github.com:yokai-php/batch-symfony-framework.git
34+
remote batch-symfony-messenger git@github.com:yokai-php/batch-symfony-messenger.git
35+
remote batch-symfony-pack git@github.com:yokai-php/batch-symfony-pack.git
36+
remote batch-symfony-serializer git@github.com:yokai-php/batch-symfony-serializer.git
37+
remote batch-symfony-validator git@github.com:yokai-php/batch-symfony-validator.git
38+
39+
split 'src/batch' batch
40+
split 'src/batch-box-spout' batch-box-spout
41+
split 'src/batch-doctrine-dbal' batch-doctrine-dbal
42+
split 'src/batch-doctrine-orm' batch-doctrine-orm
43+
split 'src/batch-doctrine-persistence' batch-doctrine-persistence
44+
split 'src/batch-symfony-console' batch-symfony-console
45+
split 'src/batch-symfony-framework' batch-symfony-framework
46+
split 'src/batch-symfony-messenger' batch-symfony-messenger
47+
split 'src/batch-symfony-pack' batch-symfony-pack
48+
split 'src/batch-symfony-serializer' batch-symfony-serializer
49+
split 'src/batch-symfony-validator' batch-symfony-validator

scripts/splitsh-lite

6.99 MB
Binary file not shown.

scripts/tests

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/bin/bash
22

3-
led in -s php80 -- composer2 --no-interaction --quiet remove --dev --no-update symplify/monorepo-builder
4-
53
matrix=(
64
"php80/5.4.*"
75
"php81/5.4.*"

0 commit comments

Comments
 (0)