Skip to content
This repository was archived by the owner on Jan 21, 2020. It is now read-only.

Commit 1a42bf9

Browse files
committed
Merging develop to master in preparation for 1.5.0 release.
2 parents 11400dd + 7b782a8 commit 1a42bf9

File tree

107 files changed

+8185
-2617
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+8185
-2617
lines changed

.coveralls.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
coverage_clover: clover.xml
2+
json_path: coveralls-upload.json

.gitattributes

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/test export-ignore
2+
.coveralls.yml
3+
.gitattributes export-ignore
4+
.gitignore export-ignore
5+
.travis.yml export-ignore
6+
phpcs.xml export-ignore
7+
phpunit.xml.dist export-ignore

.gitignore

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,4 @@
1-
vendor
2-
composer.lock
3-
composer.phar
4-
test/data
5-
test/code-coverage
6-
test/assets/module/*
7-
!test/assets/module/*Original
8-
test/build
9-
.buildpath
10-
.project
11-
.settings/
1+
vendor/
2+
phpunit.xml
3+
clover.xml
4+
coveralls-upload.json

.travis.yml

Lines changed: 66 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,36 +5,88 @@ language: php
55
services:
66
- mongodb
77

8+
cache:
9+
directories:
10+
- $HOME/.composer/cache
11+
- vendor
12+
13+
env:
14+
global:
15+
- COMPOSER_ARGS="--no-interaction --ignore-platform-reqs"
16+
- ADAPTER_DEPS="alcaeus/mongo-php-adapter"
17+
- COVERAGE_DEPS="satooshi/php-coveralls"
18+
- MONGO_DRIVER=mongo
19+
820
matrix:
9-
fast_finish: true
1021
include:
11-
- php: 5.5
22+
- php: 5.6
23+
env:
24+
- DEPS=lowest
25+
- php: 5.6
1226
env:
13-
EXECUTE_CS_CHECK=true
14-
INSTALL_PECL_MONGO=true
27+
- DEPS=locked
28+
- TEST_COVERAGE=true
1529
- php: 5.6
1630
env:
17-
EXECUTE_COVERAGE=true
18-
INSTALL_PECL_MONGO=true
31+
- DEPS=latest
1932
- php: 7
33+
env:
34+
- DEPS=lowest
35+
- MONGO_DRIVER=mongodb
36+
- php: 7
37+
env:
38+
- DEPS=locked
39+
- CS_CHECK=true
40+
- MONGO_DRIVER=mongodb
41+
- php: 7
42+
env:
43+
- DEPS=latest
44+
- MONGO_DRIVER=mongodb
45+
- php: 7.1
46+
env:
47+
- DEPS=lowest
48+
- MONGO_DRIVER=mongodb
49+
- php: 7.1
50+
env:
51+
- DEPS=locked
52+
- MONGO_DRIVER=mongodb
53+
- php: 7.1
54+
env:
55+
- DEPS=latest
56+
- MONGO_DRIVER=mongodb
57+
- php: hhvm
58+
env:
59+
- DEPS=lowest
2060
- php: hhvm
61+
env:
62+
- DEPS=locked
63+
- php: hhvm
64+
env:
65+
- DEPS=latest
2166
allow_failures:
22-
- php: 7
67+
- php: 7.1
2368
- php: hhvm
2469

2570
notifications:
2671
irc: "irc.freenode.org#apigility-dev"
2772
email: false
2873

2974
before_install:
30-
- if [[ $EXECUTE_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
31-
- if [[ $INSTALL_PECL_MONGO == 'true' ]]; then pecl install -f mongo-1.4.1 || return 0 ; fi
32-
- composer self-update
75+
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
76+
- travis_retry composer self-update
3377

3478
install:
35-
- travis_retry composer install --no-interaction --ignore-platform-reqs --prefer-source --dev
79+
- yes '' | pecl -q install -f $MONGO_DRIVER
80+
- if [[ $MONGO_DRIVER == 'mongodb' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $ADAPTER_DEPS ; fi
81+
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require --dev $COMPOSER_ARGS $COVERAGE_DEPS ; fi
82+
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
83+
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
84+
- travis_retry composer install $COMPOSER_ARGS
85+
- composer show
3686

3787
script:
38-
- mkdir -p build/logs
39-
- ./vendor/bin/phpunit
40-
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then ./vendor/bin/phpcs --standard=PSR2 --ignore=test/Bootstrap.php src test; fi
88+
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi
89+
- if [[ $CS_CHECK == 'true' ]]; then composer cs-check ; fi
90+
91+
after_script:
92+
- if [[ $TEST_COVERAGE == 'true' ]]; then composer upload-coverage ; fi

CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file, in reverse chronological order by release.
4+
5+
## 1.5.0 - TBD
6+
7+
Added
8+
-----
9+
10+
- [#32](https://github.com/zfcampus/zf-doctrine-querybuilder/pull/32) adds
11+
support for PHP 7.
12+
- [#32](https://github.com/zfcampus/zf-doctrine-querybuilder/pull/32) adds
13+
support for v3 releases of Zend Framework components, while retaining
14+
compatibility for v2 releases.
15+
- [#32](https://github.com/zfcampus/zf-doctrine-querybuilder/pull/32) exposes
16+
the module to [zendframework/zend-component-installer](https://github.com/zendframework/zend-component-installer).
17+
18+
Deprecated
19+
----------
20+
21+
- Nothing.
22+
23+
Removed
24+
-------
25+
26+
- [#32](https://github.com/zfcampus/zf-doctrine-querybuilder/pull/32) removes
27+
support for PHP 5.4 and PHP 5.5.
28+
29+
Fixed
30+
-----
31+
32+
- [#32](https://github.com/zfcampus/zf-doctrine-querybuilder/pull/32) adds a
33+
ton of tests to the module.

CONDUCT.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Contributor Code of Conduct
2+
3+
The Zend Framework project adheres to [The Code Manifesto](http://codemanifesto.com)
4+
as its guidelines for contributor interactions.
5+
6+
## The Code Manifesto
7+
8+
We want to work in an ecosystem that empowers developers to reach their
9+
potential — one that encourages growth and effective collaboration. A space that
10+
is safe for all.
11+
12+
A space such as this benefits everyone that participates in it. It encourages
13+
new developers to enter our field. It is through discussion and collaboration
14+
that we grow, and through growth that we improve.
15+
16+
In the effort to create such a place, we hold to these values:
17+
18+
1. **Discrimination limits us.** This includes discrimination on the basis of
19+
race, gender, sexual orientation, gender identity, age, nationality, technology
20+
and any other arbitrary exclusion of a group of people.
21+
2. **Boundaries honor us.** Your comfort levels are not everyone’s comfort
22+
levels. Remember that, and if brought to your attention, heed it.
23+
3. **We are our biggest assets.** None of us were born masters of our trade.
24+
Each of us has been helped along the way. Return that favor, when and where
25+
you can.
26+
4. **We are resources for the future.** As an extension of #3, share what you
27+
know. Make yourself a resource to help those that come after you.
28+
5. **Respect defines us.** Treat others as you wish to be treated. Make your
29+
discussions, criticisms and debates from a position of respectfulness. Ask
30+
yourself, is it true? Is it necessary? Is it constructive? Anything less is
31+
unacceptable.
32+
6. **Reactions require grace.** Angry responses are valid, but abusive language
33+
and vindictive actions are toxic. When something happens that offends you,
34+
handle it assertively, but be respectful. Escalate reasonably, and try to
35+
allow the offender an opportunity to explain themselves, and possibly correct
36+
the issue.
37+
7. **Opinions are just that: opinions.** Each and every one of us, due to our
38+
background and upbringing, have varying opinions. The fact of the matter, is
39+
that is perfectly acceptable. Remember this: if you respect your own
40+
opinions, you should respect the opinions of others.
41+
8. **To err is human.** You might not intend it, but mistakes do happen and
42+
contribute to build experience. Tolerate honest mistakes, and don't hesitate
43+
to apologize if you make one yourself.

CONTRIBUTING.md

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
# CONTRIBUTING
2+
3+
Apigility and related modules (of which this is one) are open source and licensed
4+
as [BSD-3-Clause](http://opensource.org/licenses/BSD-3-Clause). Contributions
5+
are welcome in the form of issue reports and pull requests.
6+
7+
All pull requests should include unit tests when applicable, and should follow
8+
our coding standards (more on these below); failure to do so may result in
9+
rejection of the pull request. If you need help writing tests, please ask on the
10+
developer mailing list and/or in IRC.
11+
12+
## RESOURCES
13+
14+
If you wish to contribute to Apigility modules, please be sure to
15+
read/subscribe to the following resources:
16+
17+
- [Coding Standards](https://github.com/zendframework/zf2/wiki/Coding-Standards)
18+
- [ZF Git Guide](https://github.com/zendframework/zf2/blob/master/README-GIT.md)
19+
- [Apigility developer mailing list](http://bit.ly/apigility-dev)
20+
- Apigility developer IRC channel: #apigility-dev on Freenode.net
21+
22+
If you are working on new features, refactoring an existing module, or proposing
23+
a new module, please send an email to the developer mailing list.
24+
25+
## REPORTING POTENTIAL SECURITY ISSUES
26+
27+
If you have encountered a potential security vulnerability in any Apigility
28+
module, please report it to us at [[email protected]](mailto:[email protected]).
29+
We will work with you to verify the vulnerability and patch it.
30+
31+
When reporting issues, please provide the following information:
32+
33+
- Module(s) affected
34+
- A description indicating how to reproduce the issue
35+
- A summary of the security vulnerability and impact
36+
37+
We request that you contact us via the email address above and give the project
38+
contributors a chance to resolve the vulnerability and issue a new release prior
39+
to any public exposure; this helps protect Apigility users, and provides them
40+
with a chance to upgrade and/or update in order to protect their applications.
41+
42+
For sensitive email communications, please use
43+
[our PGP key](http://framework.zend.com/zf-security-pgp-key.asc).
44+
45+
## RUNNING TESTS
46+
47+
First, use [Composer](https://getcomposer.org) to install all dependencies:
48+
49+
```console
50+
$ composer install
51+
```
52+
53+
To run tests:
54+
55+
```console
56+
$ composer test
57+
```
58+
59+
## CODING STANDARDS
60+
61+
While Apigility uses Zend Framework 2 coding standards, in practice, we check
62+
standards against PSR-1/2. To check for CS issues:
63+
64+
```console
65+
$ composer cs-check
66+
```
67+
68+
This will report CS issues. You can also attempt to fix many reported errors
69+
automatically:
70+
71+
```console
72+
$ composer cs-fix
73+
```
74+
75+
If you use `cs-fix` to fix issues, make certain you add and commit any files
76+
changed!
77+
78+
## Conduct
79+
80+
Please see our [CONDUCT.md](CONDUCT.md) to understand expected behavior when interacting with others in the project.

LICENSE.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
Copyright (c) 2016, Zend Technologies USA, Inc.
2+
3+
All rights reserved.
4+
5+
Redistribution and use in source and binary forms, with or without modification,
6+
are permitted provided that the following conditions are met:
7+
8+
- Redistributions of source code must retain the above copyright notice,
9+
this list of conditions and the following disclaimer.
10+
11+
- Redistributions in binary form must reproduce the above copyright notice,
12+
this list of conditions and the following disclaimer in the documentation
13+
and/or other materials provided with the distribution.
14+
15+
- Neither the name of Zend Technologies USA, Inc. nor the names of its
16+
contributors may be used to endorse or promote products derived from this
17+
software without specific prior written permission.
18+
19+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
20+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
21+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
23+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
24+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
25+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
26+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

0 commit comments

Comments
 (0)