Skip to content

Commit 9e86932

Browse files
committed
Updated travis config
1 parent c908175 commit 9e86932

File tree

7 files changed

+215
-5
lines changed

7 files changed

+215
-5
lines changed

.travis.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,18 @@ cache:
1515
- $HOME/.composer/cache
1616

1717
before_script:
18+
- travis_retry wget https://scrutinizer-ci.com/ocular.phar
1819
- travis_retry composer self-update
1920
- travis_retry composer install
2021

2122
script:
23+
- composer validate --strict
2224
- vendor/bin/phpcs --standard=psr2 src/
23-
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
25+
- vendor/bin/phpunit
26+
27+
after_script:
28+
- php ocular.phar code-coverage:upload --format=php-clover build/clover.xml
29+
30+
notifications:
31+
email: false
32+
irc: "irc.freenode.org#chesszebra"

CONDUCT.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Contributor Code of Conduct
2+
3+
As contributors and maintainers of this project, and in the interest of fostering an open and welcoming community, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
4+
5+
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, or nationality.
6+
7+
Examples of unacceptable behavior by participants include:
8+
9+
* The use of sexualized language or imagery
10+
* Personal attacks
11+
* Trolling or insulting/derogatory comments
12+
* Public or private harassment
13+
* Publishing other's private information, such as physical or electronic addresses, without explicit permission
14+
* Other unethical or unprofessional conduct.
15+
16+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. By adopting this Code of Conduct, project maintainers commit themselves to fairly and consistently applying these principles to every aspect of managing this project. Project maintainers who do not follow or enforce the Code of Conduct may be permanently removed from the project team.
17+
18+
This code of conduct applies both within project spaces and in public spaces when an individual is representing the project or its community in a direct capacity. Personal views, beliefs and values of individuals do not necessarily reflect those of the organisation or affiliated individuals and organisations.
19+
20+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
21+
22+
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.2.0, available at [http://contributor-covenant.org/version/1/2/0/](http://contributor-covenant.org/version/1/2/0/)

CONTRIBUTING.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Contributing
2+
3+
All contributions are much appreciated and will be fully credited.
4+
We accept contributions via Pull Requests on [Github](https://github.com/chesszebra).
5+
6+
Your Pull Requests must comply to our contribution guidelines which
7+
can be found on developers.chesszebra.com.

LICENSE renamed to LICENSE.md

File renamed without changes.

README.md

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# portable-game-notation
22

3-
[![Build Status](https://travis-ci.org/chesszebra/portable-game-notation.svg?branch=master)](https://travis-ci.org/chesszebra/portable-game-notation)
3+
[![Latest Version on Packagist][ico-version]][link-packagist]
4+
[![Software License][ico-license]](LICENSE.md)
5+
[![Build Status][ico-travis]][link-travis]
6+
[![Coverage Status][ico-scrutinizer]][link-scrutinizer]
7+
[![Quality Score][ico-code-quality]][link-code-quality]
8+
[![Total Downloads][ico-downloads]][link-downloads]
49

510
A PHP library to parse and write chess games in the portable game notation (PGN) format.
611

@@ -104,3 +109,29 @@ $lexer = new StreamLexer(fopen('my-games.pgn', 'r'));
104109
$token = $lexer->getNextToken();
105110
```
106111

112+
## Contributing
113+
114+
Please see [CONTRIBUTING](CONTRIBUTING.md) and [CONDUCT](CONDUCT.md) for details.
115+
116+
## Security
117+
118+
If you discover any security related issues, please report them via [HackerOne][link-hackerone].
119+
120+
## License
121+
122+
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
123+
124+
[ico-version]: https://img.shields.io/packagist/v/chesszebra/portable-game-notation.svg?style=flat-square
125+
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square
126+
[ico-travis]: https://img.shields.io/travis/chesszebra/portable-game-notation/master.svg?style=flat-square
127+
[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/chesszebra/portable-game-notation.svg?style=flat-square
128+
[ico-code-quality]: https://img.shields.io/scrutinizer/g/chesszebra/portable-game-notation.svg?style=flat-square
129+
[ico-downloads]: https://img.shields.io/packagist/dt/chesszebra/portable-game-notation.svg?style=flat-square
130+
131+
[link-packagist]: https://packagist.org/packages/chesszebra/portable-game-notation
132+
[link-travis]: https://travis-ci.org/chesszebra/portable-game-notation
133+
[link-scrutinizer]: https://scrutinizer-ci.com/g/chesszebra/portable-game-notation/code-structure
134+
[link-code-quality]: https://scrutinizer-ci.com/g/chesszebra/portable-game-notation
135+
[link-downloads]: https://packagist.org/packages/chesszebra/portable-game-notation
136+
[link-contributors]: ../../contributors
137+
[link-hackerone]: https://hackerone.com/chesszebra

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"type": "library",
66
"require": {
77
"php": "^7.1",
8-
"chesszebra/standard-algebraic-notation": "^1.0"
8+
"chesszebra/standard-algebraic-notation": "^1.0",
9+
"roave/security-advisories": "dev-master"
910
},
1011
"require-dev": {
1112
"phpunit/phpunit": "^6.4",

composer.lock

Lines changed: 142 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)