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

Commit 03db570

Browse files
committed
Merge branch 'develop'
2 parents 216ecec + eebb3bd commit 03db570

13 files changed

+2037
-49
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
.*.sw*
88
.*.un~
99
clover.xml
10-
composer.lock
1110
coveralls-upload.json
1211
nbproject
1312
phpunit.xml

.travis.yml

+46-12
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ language: php
44

55
branches:
66
except:
7-
- /^release-.*$/
7+
- /^release-\d+\.\d+\.\d+.*$/
88
- /^ghgfk-.*$/
99

1010
cache:
@@ -20,43 +20,77 @@ addons:
2020
env:
2121
global:
2222
- TESTS_ZEND_LDAP_ONLINE_ENABLED=true
23+
- COMPOSER_ARGS="--no-interaction --ignore-platform-reqs"
2324

2425
matrix:
2526
fast_finish: true
2627
include:
2728
- php: 5.5
2829
env:
29-
- EXECUTE_CS_CHECK=true
30+
- DEPS=lowest
31+
- php: 5.5
32+
env:
33+
- DEPS=locked
34+
- CHECK_CS=true
35+
- php: 5.5
36+
env:
37+
- DEPS=latest
38+
- php: 5.6
39+
env:
40+
- DEPS=lowest
41+
- php: 5.6
42+
env:
43+
- DEPS=locked
44+
- TEST_COVERAGE=true
3045
- php: 5.6
3146
env:
32-
- EXECUTE_TEST_COVERALLS=true
47+
- DEPS=latest
48+
- php: 7
49+
env:
50+
- DEPS=lowest
3351
- php: 7
52+
env:
53+
- DEPS=locked
54+
- php: 7
55+
env:
56+
- DEPS=latest
57+
- php: hhvm
58+
env:
59+
- DEPS=lowest
3460
- php: hhvm
61+
env:
62+
- DEPS=locked
63+
- php: hhvm
64+
env:
65+
- DEPS=latest
3566
allow_failures:
36-
- php: 7
3767
- php: hhvm
3868

3969
notifications:
4070
irc: "irc.freenode.org#zftalk.dev"
4171
email: false
4272

4373
before_install:
44-
- if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
45-
- composer self-update
46-
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then composer require --dev --no-update satooshi/php-coveralls ; fi
74+
- travis_retry composer self-update
75+
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
4776

4877
install:
49-
- travis_retry composer install --no-interaction --ignore-platform-reqs
78+
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.5" ]]; then composer require $COMPOSER_ARGS --dev --no-update "phpunit/phpunit:^4"; fi
79+
- if [[ $DEPS == 'latest' ]]; then travis_retry composer update $COMPOSER_ARGS ; fi
80+
- if [[ $DEPS == 'lowest' ]]; then travis_retry composer update --prefer-lowest --prefer-stable $COMPOSER_ARGS ; fi
81+
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer require $COMPOSER_ARGS --dev satooshi/php-coveralls ; fi
82+
- travis_retry composer install $COMPOSER_ARGS
83+
- composer show --installed
5084

5185
before_script:
5286
- phpenv config-add .ci/php.ini || return 0
5387
- .ci/OpenLDAP_run.sh
5488
- .ci/load_fixtures.sh
5589

5690
script:
57-
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then ./vendor/bin/phpunit --coverage-clover clover.xml ; fi
58-
- if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then ./vendor/bin/phpunit ; fi
59-
- if [[ $EXECUTE_CS_CHECK == 'true' ]]; then ./vendor/bin/php-cs-fixer fix -v --diff --dry-run ; fi
91+
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; fi
92+
- if [[ $TEST_COVERAGE != 'true' ]]; then composer test ; fi
93+
- if [[ $CHECK_CS == 'true' ]]; then composer cs-check ; fi
6094

6195
after_script:
62-
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then ./vendor/bin/coveralls ; fi
96+
- if [[ $TEST_COVERAGE == 'true' ]]; then travis_retry composer upload-coverage ; fi

CHANGELOG.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,20 @@ All notable changes to this project will be documented in this file, in reverse
66

77
### Added
88

9-
- Nothing.
9+
- [#43](https://github.com/zendframework/zend-ldap/pull/43) Adds possibility
10+
to use [Zend\StdLib](https://github.com/zendframework/zend-stdlib) and
11+
[Zend\EventManager](https://github.com/zendframework/zend-eventmanager) in
12+
Version 3
13+
- Support for PHP7
1014

1115
### Deprecated
1216

1317
- Nothing.
1418

1519
### Removed
1620

17-
- Nothing.
21+
- [#21](https://github.com/zendframework/zend-ldap/pull/21) Removes dependency
22+
Zend\StdLib
1823

1924
### Fixed
2025

composer.json

+17-6
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@
1313
}
1414
},
1515
"require": {
16-
"php": ">=5.5",
17-
"ext-ldap": "*",
18-
"zendframework/zend-stdlib": "~2.5"
16+
"php": "^5.5 || ^7.0",
17+
"ext-ldap": "*"
1918
},
2019
"require-dev": {
21-
"zendframework/zend-config": "~2.5",
22-
"zendframework/zend-eventmanager": "~2.5",
20+
"zendframework/zend-config": "^2.5",
21+
"zendframework/zend-eventmanager": "^2.6.3 || ^3.0.1",
22+
"zendframework/zend-stdlib": "^2.7 || ^3.0",
2323
"fabpot/php-cs-fixer": "1.7.*",
24-
"phpunit/PHPUnit": "~4.0",
24+
"phpunit/PHPUnit": "^4.5",
2525
"php-mock/php-mock-phpunit": "~0.3"
2626
},
2727
"suggest": {
@@ -39,5 +39,16 @@
3939
"psr-4": {
4040
"ZendTest\\Ldap\\": "test/"
4141
}
42+
},
43+
"scripts": {
44+
"check": [
45+
"@cs-check",
46+
"@test"
47+
],
48+
"upload-coverage": "coveralls -v",
49+
"cs-check": "php-cs-fixer --version && php-cs-fixer fix -v --diff --dry-run",
50+
"cs-fix": "php-cs-fixer fix -v",
51+
"test": "phpunit",
52+
"test-coverage": "phpunit --coverage-clover clover.xml"
4253
}
4354
}

0 commit comments

Comments
 (0)