Skip to content

Commit

Permalink
Initial commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bilge committed Nov 1, 2017
0 parents commit 826af37
Show file tree
Hide file tree
Showing 5 changed files with 104 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/vendor/
/.*/
/composer.lock
36 changes: 36 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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"
31 changes: 31 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
12 changes: 12 additions & 0 deletions test/phpunit.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<phpunit
beStrictAboutOutputDuringTests="true"
>
<testsuite>
<directory>.</directory>
</testsuite>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory>../src</directory>
</whitelist>
</filter>
</phpunit>

0 comments on commit 826af37

Please sign in to comment.