Skip to content

Commit a91285b

Browse files
committed
Auto split the project
This commit adds the "jderusse/docker-gitsplit" splitting system to the project. It allows to split the whole project at once when master ov vX.Y branches receive updates.
1 parent f316fb5 commit a91285b

File tree

2 files changed

+59
-21
lines changed

2 files changed

+59
-21
lines changed

.gitsplit.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
cache_dir: "/cache/gitsplit"
2+
3+
splits:
4+
- prefix: "src/Component/Core"
5+
target: "https://${GH_TOKEN}@github.com:web-token/jwt-core.git"
6+
- prefix: "src/Component/Checker"
7+
target: "https://${GH_TOKEN}@github.com:web-token/jwt-checker.git"
8+
- prefix: "src/Component/Signature"
9+
target: "https://${GH_TOKEN}@github.com:web-token/jwt-signature.git"
10+
- prefix: "src/Component/Encryption"
11+
target: "https://${GH_TOKEN}@github.com:web-token/jwt-encryption.git"
12+
- prefix: "src/Component/KeyManagement"
13+
target: "https://${GH_TOKEN}@github.com:web-token/jwt-key-mgmt.git"
14+
- prefix: "src/Component/Console"
15+
target: "https://${GH_TOKEN}@github.com:web-token/jwt-console.git"
16+
- prefix: "src/Bundle/JoseFramework"
17+
target: "https://${GH_TOKEN}@github.com:web-token/jwt-bundle.git"
18+
19+
origins:
20+
- "^master$"
21+
- "^v\d+\.\d+\.\d+$"

.travis.yml

Lines changed: 38 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,44 @@
11
language: php
2-
sudo: true
2+
3+
sudo: required
4+
5+
services:
6+
- docker
7+
38
cache:
4-
directories:
5-
- "$HOME/.composer/cache"
6-
- vendor
9+
directories:
10+
- "$HOME/.composer/cache"
11+
- "vendor"
12+
- "/cache/gitsplit"
13+
714
matrix:
8-
allow_failures:
9-
- php: nightly
10-
fast_finish: true
11-
include:
12-
- php: 7.1
13-
env: deps=low
14-
- php: 7.1
15-
- php: nightly
16-
- php: 7.2
15+
allow_failures:
16+
- php: nightly
17+
fast_finish: true
18+
include:
19+
- php: 7.1
20+
env: deps=low
21+
- php: 7.1
22+
- php: nightly
23+
- php: 7.2
24+
25+
install:
26+
- docker pull jderusse/gitsplit
27+
- git config remote.origin.fetch "+refs/*:refs/*"
28+
- git config remote.origin.mirror true
29+
- git fetch --unshallow
30+
1731
before_script:
18-
- chmod +x ./tests/install_php_ext.sh
19-
- if [ "$TRAVIS_PHP_VERSION" = '7.1' ]; then ./tests/install_php_ext.sh; fi
20-
- composer self-update
21-
- mkdir -p build/logs
22-
- if [[ $deps = low ]]; then composer update --no-interaction --prefer-lowest ; fi
23-
- if [[ !$deps ]]; then composer install --no-interaction ; fi
32+
- chmod +x ./tests/install_php_ext.sh
33+
- if [ "$TRAVIS_PHP_VERSION" = '7.1' ]; then ./tests/install_php_ext.sh; fi
34+
- composer self-update
35+
- mkdir -p build/logs
36+
- if [[ $deps = low ]]; then composer update --no-interaction --prefer-lowest ; fi
37+
- if [[ !$deps ]]; then composer install --no-interaction ; fi
38+
2439
script:
25-
- "./vendor/bin/phpunit --coverage-clover build/logs/clover.xml"
40+
- docker run --rm -t -e GH_TOKEN -v /cache/gitsplit:/cache/gitsplit -v ${PWD}:/srv jderusse/gitsplit
41+
- "./vendor/bin/phpunit --coverage-clover build/logs/clover.xml"
42+
2643
after_success:
27-
- vendor/bin/coveralls --no-interaction
44+
- vendor/bin/coveralls --no-interaction

0 commit comments

Comments
 (0)