-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from kilip/wip
repository split preparation
- Loading branch information
Showing
104 changed files
with
2,151 additions
and
475 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,3 +1,4 @@ | ||
/vendor/ | ||
/build/ | ||
composer.lock | ||
composer.lock | ||
.php_cs.cache |
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,44 @@ | ||
#!/usr/bin/env bash | ||
|
||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
if (( "$#" != 1 )) | ||
then | ||
echo "Tag has to be provided" | ||
|
||
exit 1 | ||
fi | ||
|
||
BRANCH="master" | ||
VERSION=$1 | ||
|
||
# Always prepend with "v" | ||
if [[ $VERSION != v* ]] | ||
then | ||
VERSION="v$VERSION" | ||
fi | ||
|
||
for REMOTE in code-coverage-bridge behat-code-coverage phpspec-code-coverage | ||
do | ||
echo "" | ||
echo "" | ||
echo "Releasing $REMOTE"; | ||
|
||
TMP_DIR="/tmp/code-coverage-split" | ||
REMOTE_URL="git@github.com:doyolabs/$REMOTE.git" | ||
|
||
rm -rf $TMP_DIR; | ||
mkdir $TMP_DIR; | ||
|
||
( | ||
cd $TMP_DIR; | ||
|
||
git clone $REMOTE_URL . | ||
git checkout "$BRANCH"; | ||
|
||
git tag -s $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,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -x | ||
set -e | ||
|
||
BRANCH=$1 | ||
|
||
function split() | ||
{ | ||
SHA1=`./bin/splitsh-lite --prefix=$1` | ||
git push $2 "$SHA1:refs/heads/$BRANCH" -f | ||
} | ||
|
||
function remote() | ||
{ | ||
git remote add $1 $2 || true | ||
} | ||
|
||
git pull origin $BRANCH | ||
|
||
remote code-coverage-bridge git@github.com:doyolabs/code-coverage-bridge.git | ||
remote behat-code-coverage git@github.com:doyolabs/behat-code-coverage.git | ||
remote phpspec-code-coverage git@github.com:doyolabs/phpspec-code-coverage.git |
Binary file not shown.
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,4 @@ | ||
.gitignore export-ignore | ||
.travis.yml export-ignore | ||
Spec export-ignore | ||
composer.lock 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,3 @@ | ||
/vendor/ | ||
/build/ | ||
composer.lock |
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,62 @@ | ||
language: php | ||
|
||
cache: | ||
directories: | ||
- $HOME/.composer/cache | ||
- $HOME/bin | ||
- vendor | ||
|
||
.steps: | ||
- &disable-php-memory-limit | | ||
echo "memory_limit=-1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini | ||
- &disable-xdebug-php-extension | | ||
if [[ ${COVERAGE} != yes ]]; then phpenv config-rm xdebug.ini || echo "xdebug not available"; fi | ||
- &update-project-dependencies | | ||
composer update --prefer-dist --no-progress --no-suggest --ansi | ||
- &install-php-coveralls | | ||
composer require php-coveralls/php-coveralls --no-scripts | ||
- &install-scrutinizer-ocular | | ||
composer require scrutinizer/ocular --no-scripts | ||
- &upload-coverage | | ||
travis_retry vendor/bin/php-coveralls | ||
travis_retry vendor/bin/ocular code-coverage:upload --format=php-clover build/logs/clover.xml | ||
- &install-robo | | ||
mkdir -p ${HOME}/bin || echo "directory exists" | ||
export ROBO=${HOME}/bin/robo | ||
[ -f "${ROBO}" ] && echo "installed" || wget -c https://github.com/kilip/robo/raw/site/robotheme/robo.phar -O ${ROBO} | ||
chmod +x $ROBO | ||
export PATH=${HOME}/bin:${PATH} | ||
- &run-test | | ||
./vendor/bin/phpcs | ||
robo test | ||
- &run-test-coverage | ||
robo coverage | ||
- &start-php-server | ||
php -S localhost:8000 -t tests/Fixtures/public > /dev/null 2>&1 & | ||
|
||
jobs: | ||
include: | ||
- php: '7.0' | ||
- php: '7.1' | ||
- php: '7.2' | ||
- php: '7.3' | ||
env: COVERAGE=yes | ||
before_cache: | ||
- *install-php-coveralls | ||
- *install-scrutinizer-ocular | ||
before_script: *start-php-server | ||
script: | ||
- *run-test-coverage | ||
after_script: | ||
- *upload-coverage | ||
|
||
before_install: | ||
- *disable-php-memory-limit | ||
- *disable-xdebug-php-extension | ||
- *install-robo | ||
|
||
install: | ||
- *update-project-dependencies | ||
|
||
script: | ||
- *run-test |
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.