diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8e08ee5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/vendor/ +/.*/ +/composer.lock diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..2582b2c --- /dev/null +++ b/.travis.yml @@ -0,0 +1,36 @@ +notifications: + email: false + +sudo: false + +language: php + +php: + - 5.5 + - 5.6 + - 7.0 + - 7.1 + +env: + matrix: + - + - DEPENDENCIES=--prefer-lowest + +matrix: + fast_finish: true + +cache: + directories: + - .composer/cache + +install: + - alias composer=composer\ -n && composer selfupdate + - composer validate + - composer update $DEPENDENCIES + +script: + - composer test -- --coverage-clover=build/logs/clover.xml + +after_success: + - composer require satooshi/php-coveralls + - vendor/bin/coveralls -v diff --git a/README.md b/README.md new file mode 100644 index 0000000..a189f81 --- /dev/null +++ b/README.md @@ -0,0 +1,22 @@ +FileConnector +============= + +[![Latest version][Version image]][Releases] +[![Total downloads][Downloads image]][Downloads] +[![Build status][Build image]][Build] +[![Test coverage][Coverage image]][Coverage] +[![Code style][Style image]][Style] + +Provides a local filesystems connector for Porter. + + + [Releases]: https://github.com/Porter-connectors/FileConnector/releases + [Version image]: https://poser.pugx.org/connectors/file/version "Latest version" + [Downloads]: https://packagist.org/packages/connectors/file + [Downloads image]: https://poser.pugx.org/connectors/file/downloads "Total downloads" + [Build]: https://travis-ci.org/Porter-connectors/FileConnector + [Build image]: https://travis-ci.org/Porter-connectors/FileConnector.svg?branch=master "Build status" + [Coverage]: https://coveralls.io/github/Porter-connectors/FileConnector + [Coverage image]: https://coveralls.io/repos/Porter-connectors/FileConnector/badge.svg "Test coverage" + [Style]: https://styleci.io/repos/109195476 + [Style image]: https://styleci.io/repos/109195476/shield?style=flat "Code style" diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..872c631 --- /dev/null +++ b/composer.json @@ -0,0 +1,31 @@ +{ + "name": "connectors/file", + "description": "Provides a local filesystems connector for Porter.", + "authors": [ + { + "name": "Bilge", + "email": "bilge@scriptfusion.com" + } + ], + "license": "LGPL-3.0", + "require": { + "php": "^7", + "scriptfusion/porter": "4.0.x-dev" + }, + "require-dev": { + "phpunit/phpunit": "^6" + }, + "autoload": { + "psr-4": { + "ScriptFUSION\\Porter\\Net\\File\\": "src" + } + }, + "autoload-dev": { + "psr-4": { + "ScriptFUSIONTest\\": "test" + } + }, + "scripts": { + "test": "phpunit -c test" + } +} diff --git a/test/phpunit.xml b/test/phpunit.xml new file mode 100644 index 0000000..9d80b47 --- /dev/null +++ b/test/phpunit.xml @@ -0,0 +1,12 @@ + + + . + + + + ../src + + +