This repository has been archived by the owner on Mar 1, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2
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 #161 from narrowspark/issue-52-refactor-filesystem
Issue 52 refactor filesystem
- Loading branch information
Showing
145 changed files
with
3,804 additions
and
2,903 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,7 +1,9 @@ | ||
/vendor | ||
.DS_Store | ||
.php_cs.cache | ||
|
||
composer.phar | ||
composer.lock | ||
.php_cs.cache | ||
.DS_Store | ||
Thumbs.db | ||
|
||
/build/logs | ||
/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
File renamed without changes.
File renamed without changes.
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,11 @@ | ||
# Build Scripts | ||
|
||
This directory contains the scripts that travis uses to build the project. | ||
|
||
The scripts in [the php directory](php/) are ran when travis is testing the given version. [`all.sh`](php/all.sh) is ran for every version. | ||
|
||
Tests are ran using [`runTests.sh`](runTests.sh). This file grabs all the sub projects, and runs [`runTest.sh`](runTest.sh). | ||
[`runTest.sh`](runTest.sh) goes into each directory, installs composer (ignoring platform reqs), and then runs the tests. | ||
|
||
After running tests on all of the sub projects, [`runTests.sh`](runTests.sh) runs tests on the entire [`narrowspark/framework`](https://github.com/narrowspark/framework) repository, | ||
and then sends code coverage reports out to [Codecov](https://codecov.io/github/narrowspark/framework). |
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,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Send coverage to scrutinizer | ||
if [[ "$TRAVIS_PHP_VERSION" != hhvm && "$CHECK_CS" = true && "$SEND_COVERAGE" = true ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi | ||
if [[ "$TRAVIS_PHP_VERSION" != hhvm && "$CHECK_CS" = true && "$SEND_COVERAGE" = true ]]; then php ocular.phar code-coverage:upload --format=php-clover build/logs/coverage.xml; fi | ||
|
||
# Run codecov | ||
if [[ "$TRAVIS_PHP_VERSION" != hhvm && "$CHECK_CS" = true && "$SEND_COVERAGE" = true ]]; then bash <(curl -s https://codecov.io/bash); fi |
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 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Disable xdebug when hhvm or when SEND_COVERAGE is false | ||
if [[ "$TRAVIS_PHP_VERSION" != hhvm && "$CHECK_CS" != true && "$SEND_COVERAGE" != true ]]; then phpenv config-rm xdebug.ini; fi | ||
|
||
# Doing something with phpenv | ||
if [ "$TRAVIS_PHP_VERSION" != hhvm ]; then phpenv config-add ./build/travis/php/php.ini; fi |
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 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Install libevent | ||
if [ "$ADAPTER" = Libevent ]; then (echo "yes" | pecl install "channel://pecl.php.net/libevent-0.1.0"); fi | ||
|
||
# Install ev | ||
if [ "$ADAPTER" = Ev ]; then (echo "yes" | pecl install ev); fi |
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,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Install Libuv | ||
if [ "$ADAPTER" = Libuv ]; then (mkdir libuv && (curl -L https://github.com/libuv/libuv/archive/v1.6.1.tar.gz | tar xzf -) && cd libuv-1.6.1 && ./autogen.sh && ./configure --prefix=$(readlink -f `pwd`/../libuv) && make && make install && cd ..); fi | ||
|
||
# Install Uv | ||
if [ "$ADAPTER" = Uv ]; then (git clone https://github.com/bwoebi/php-uv && cd php-uv && phpize && ./configure --with-uv=$(readlink -f `pwd`/../libuv) && make install && (echo "extension = uv.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini) && cd ..); fi | ||
|
||
# Remove flysystem-azure | ||
composer remove league/flysystem-azure --dev --no-update |
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 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Don't need anything yet |
File renamed without changes.
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,17 @@ | ||
#!/usr/bin/env bash | ||
|
||
SLUG=$(grep -Pho 'viserio/[A-Za-z-\.]+' $1/composer.json | xargs | awk '{print $1}') | ||
printf "\n\n************ Running tests for $SLUG ************\n\n" | ||
|
||
cd $1 | ||
composer install --no-interaction --prefer-source --ignore-platform-reqs --quiet | ||
|
||
TEST="./vendor/bin/phpunit $2" | ||
|
||
printf "Command: $TEST\n\n" | ||
if [ "$TRAVIS_PHP_VERSION" == '7.0' ] | ||
then | ||
phpdbg -qrr $TEST | ||
else | ||
sh -c "$TEST" | ||
fi |
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 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Run for each components | ||
COMPONENTS=$(find src/Viserio/ -mindepth 3 -type f -name phpunit.xml.dist -printf '%h\n') | ||
if [ command -v parallel >/dev/null 2>&1 ] | ||
then | ||
# Exists | ||
echo $COMPONENTS | parallel --gnu './build/travis/runTest.sh {}' | ||
|
||
else | ||
# Doesn't Exist | ||
echo $COMPONENTS | xargs -n 1 ./build/travis/runTest.sh | ||
fi | ||
|
||
# Fail out if the tests above failed | ||
if [ $? > 0 ]; then exit $?; fi | ||
|
||
# Run for main repo. Generate coverage | ||
COVERAGE=coverage.xml | ||
if [[ -f $COVERAGE && "$CHECK_CS" = true && "$SEND_COVERAGE" = true ]]; then rm $COVERAGE; fi | ||
|
||
./build/travis/runTest.sh ./ --coverage-clover=$COVERAGE |
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,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
mkdir -p build/logs | ||
./build/travis/runTests.sh | ||
if [[ "$TRAVIS_PHP_VERSION" != hhvm && "$CHECK_CS" != true && "$SEND_COVERAGE" != true ]]; then vendor/bin/humbug; fi |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.