Skip to content

Commit 08e6d6a

Browse files
authored
Merge pull request #60 from chadicus/develop
Version 3
2 parents 81e8d41 + fa400be commit 08e6d6a

26 files changed

+1030
-3195
lines changed

.gitattributes

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Enforce Unix newlines
2+
* text=lf
3+
4+
# Exclude unused files
5+
# see: https://redd.it/2jzp6k
6+
/tests export-ignore
7+
/.*.yml export-ignore
8+
/.gitattributes export-ignore
9+
/.gitignore export-ignore
10+
/.github export-ignore
11+
/*.xml export-ignore
12+
README.md export-ignore
13+
phpunit.xml.dist export-ignore

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @traderinteractive/opensource

.github/CONTRIBUTING.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Contribution Guidelines
2+
3+
We welcome you to report [issues](/../../issues) or submit [pull requests](/../../pulls). While the below guidelines
4+
are necessary to get code merged, you can submit pull requests that do not adhere to them and we will try to take care
5+
of them in our spare time. We are a smallish group of developers, though, so if you can make sure the build is passing
6+
100%, that would be very useful.
7+
8+
We recommend including details of your particular usecase(s) with any issues or pull requests. We love to hear how our
9+
libraries are being used and we can get things merged in quicker when we understand its expected usage.
10+
11+
## Running the build
12+
To run the build do the following:
13+
```sh
14+
composer install
15+
./vendor/bin/phpunit
16+
./vendor/bin/phpcs
17+
```
18+
19+
This build enforces 100% [PHPUnit](http://www.phpunit.de) code coverage and 0 errors for the [coding standard](http://www.php-fig.org/psr/psr-2/).
20+
21+
Failures in either will keep us from merging the pull request.

.github/ISSUE_TEMPLATE.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
### Expected behavior
2+
3+
### Actual behavior
4+
5+
### Steps to reproduce the behavior

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Fixes # .
2+
3+
#### What does this PR do?
4+
5+
#### Checklist
6+
- [ ] Pull request contains a clear definition of changes
7+
- [ ] Tests (either unit, integration, or acceptance) written and passing
8+
- [ ] Relevant documentation produced and/or updated

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
/clover.xml
22
/vendor
33
/coverage/
4+
composer.lock
5+
phpunit.xml

.scrutinizer.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
build:
2-
environment:
3-
php: 7.0.6
4-
mongodb: true
51
filter:
62
excluded_paths:
73
- 'vendor/*'
8-
- 'tests/*'
94
before_commands:
105
- 'composer install'
116
tools:
@@ -18,12 +13,10 @@ tools:
1813
php_loc:
1914
excluded_dirs:
2015
- vendor
21-
- tests
2216
php_pdepend: true
2317
php_sim: true
2418
build_failure_conditions:
25-
- 'elements.rating(<= D).new.exists' # No new classes/methods with a rating of D or worse allowed (useful for legacy code)
26-
- 'issues.label("coding-style").new.exists' # No new coding style issues allowed
27-
- 'issues.label("coding-style").new.count > 5' # More than 5 new coding style issues.
28-
- 'issues.severity(>= MAJOR).new.exists' # New issues of major or higher severity
29-
- 'project.metric("scrutinizer.quality", < 6)' # Code Quality Rating drops below 6
19+
- 'elements.rating(< B).new.exists'
20+
- 'issues.label("coding-style").new.exists'
21+
- 'issues.severity(>= MAJOR).new.exists'
22+
- 'project.metric("scrutinizer.quality", < 9)'

.travis.yml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
language: php
22
php:
33
- 7.0
4-
- 5.6
5-
services:
6-
- mongodb
4+
- 7.1
5+
- 7.2
6+
- nightly
7+
env:
8+
- PREFER_LOWEST="--prefer-lowest --prefer-stable"
9+
- PREFER_LOWEST=""
10+
services: mongodb
11+
matrix:
12+
fast_finish: true
13+
allow_failures:
14+
- php: nightly
715
before_script:
8-
- composer self-update
9-
- yes '' | pecl install -f mongodb-1.1
10-
script: ./build.php
11-
after_script: ./vendor/bin/coveralls -v
16+
- yes '' | pecl install -f mongodb
17+
- composer update $PREFER_LOWEST
18+
script: ./vendor/bin/phpunit --coverage-clover clover.xml
19+
after_success: ./vendor/bin/coveralls -v

CONTRIBUTING.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License
22

3-
Copyright (c) 2013 Dominion Enterprises
3+
Copyright (c) 2017 Trader Interactive
44

55
Permission is hereby granted, free of charge, to any person
66
obtaining a copy of this software and associated documentation

0 commit comments

Comments
 (0)