|
1 | 1 | # Flysystem Adapter for Github |
2 | 2 |
|
3 | | -[](https://github.com/potherca/flysystem-github/releases) |
4 | | -[](LICENSE.md) |
5 | | -[](https://travis-ci.org/potherca/flysystem-github) |
6 | | -[](https://coveralls.io/github/potherca/flysystem-github) |
7 | | -[](https://scrutinizer-ci.com/g/potherca/flysystem-github) |
8 | | -[](https://packagist.org/packages/potherca/flysystem-github) |
| 3 | +[![Latest Version][Latest Version Badge]][Release Page] |
| 4 | +[![Software License][Software License Badge]][License file] |
| 5 | +[![Build Status][Build Status Badge]][Travis Page] |
| 6 | +[![Coverage Status][Coverage Status Badge]][Coveralls Page] |
| 7 | +[![Quality Score][Quality Score Badge]][Scrutinizer Page] |
| 8 | +[![Total Downloads][Total Downloads Badge]][Packagist Page] |
9 | 9 |
|
10 | 10 | ## Install |
11 | 11 |
|
@@ -89,26 +89,59 @@ $filesystem = new Filesystem($adapter); |
89 | 89 |
|
90 | 90 | ## Testing |
91 | 91 |
|
| 92 | +The unit-tests can be run with the following command: |
| 93 | + |
92 | 94 | ``` bash |
93 | 95 | $ composer test |
94 | 96 | ``` |
95 | 97 |
|
| 98 | +To run integration tests, which use the Github API, a [Github API token] might be needed (to stop the tests hitting the API Limit). |
| 99 | +An API key can be added by setting it in the environment as `GITHUB_API_KEY` or by creating an `.env` file in the integration tests directory and setting it there. |
| 100 | +See `tests/integration-tests/.env.example` for an example. |
| 101 | + |
| 102 | +To run the integration test, run the following command (this will also run the unit-tests): |
| 103 | + |
| 104 | +``` bash |
| 105 | +$ composer test-all |
| 106 | +``` |
| 107 | + |
96 | 108 | ## Security |
97 | 109 |
|
98 | 110 | If you discover any security related issues, please email [email protected] instead of using the issue tracker. |
99 | 111 |
|
100 | 112 | ## Contributing |
101 | 113 |
|
102 | | -Please see [CONTRIBUTING](CONTRIBUTING.md) for details. |
| 114 | +Please see [CONTRIBUTING] for details. |
103 | 115 |
|
104 | 116 | ## Change Log |
105 | 117 |
|
106 | | -Please see [CHANGELOG](CHANGELOG.md) for details. |
| 118 | +Please see [CHANGELOG] for details. |
107 | 119 |
|
108 | 120 | ## Credits |
109 | 121 |
|
110 | | -- [Potherca](https://github.com/potherca) |
| 122 | +- [Potherca] |
| 123 | +- [Contributors] |
111 | 124 |
|
112 | 125 | ## License |
113 | 126 |
|
114 | | -The MIT License (MIT). Please see [License File](LICENSE.md) for more information. |
| 127 | +The MIT License (MIT). Please see [License File] for more information. |
| 128 | + |
| 129 | +[Release Page]: https://github.com/potherca/flysystem-github/releases |
| 130 | +[License File]: LICENSE.md |
| 131 | +[Travis Page]: https://travis-ci.org/Potherca/flysystem-github |
| 132 | +[Coveralls Page]: https://coveralls.io/github/potherca/flysystem-github |
| 133 | +[Scrutinizer Page]: https://scrutinizer-ci.com/g/potherca/flysystem-github |
| 134 | +[Packagist Page]: https://packagist.org/packages/potherca/flysystem-github |
| 135 | + |
| 136 | +[Latest Version Badge]: https://img.shields.io/github/release/potherca/flysystem-github.svg |
| 137 | +[Software License Badge]: https://img.shields.io/badge/license-MIT-brightgreen.svg |
| 138 | +[Build Status Badge]: https://img.shields.io/travis/Potherca/flysystem-github.svg |
| 139 | +[Coverage Status Badge]: https://coveralls.io/repos/potherca/flysystem-github/badge.svg |
| 140 | +[Quality Score Badge]: https://img.shields.io/scrutinizer/g/potherca/flysystem-github.svg |
| 141 | +[Total Downloads Badge]: https://img.shields.io/packagist/dt/potherca/flysystem-github.svg |
| 142 | + |
| 143 | +[Contributors]: https://github.com/Potherca/flysystem-github/graphs/contributors |
| 144 | +[CHANGELOG]: CHANGELOG.md |
| 145 | +[CONTRIBUTING]: CONTRIBUTING.md |
| 146 | +[Potherca]: https://github.com/potherca |
| 147 | +[Github API token]: https://help.github.com/articles/creating-an-access-token-for-command-line-use/ |
0 commit comments