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

Commit eebb3bd

Browse files
committed
Merge branch 'feature/43' into develop
Closes #43
2 parents f88d9f3 + bd49872 commit eebb3bd

File tree

7 files changed

+1848
-48
lines changed

7 files changed

+1848
-48
lines changed

Diff for: .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

Diff for: .travis.yml

+46-13
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,44 +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
47-
- if [[ ${TRAVIS_PHP_VERSION:0:3} == "5.5" ]]; then composer require --dev --no-update phpunit/phpunit ~4; fi
74+
- travis_retry composer self-update
75+
- if [[ $TEST_COVERAGE != 'true' ]]; then phpenv config-rm xdebug.ini || return 0 ; fi
4876

4977
install:
50-
- 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
5184

5285
before_script:
5386
- phpenv config-add .ci/php.ini || return 0
5487
- .ci/OpenLDAP_run.sh
5588
- .ci/load_fixtures.sh
5689

5790
script:
58-
- if [[ $EXECUTE_TEST_COVERALLS == 'true' ]]; then ./vendor/bin/phpunit --coverage-clover clover.xml ; fi
59-
- if [[ $EXECUTE_TEST_COVERALLS != 'true' ]]; then ./vendor/bin/phpunit ; fi
60-
- 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
6194

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

Diff for: CHANGELOG.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ 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

Diff for: composer.json

+17-6
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@
1313
}
1414
},
1515
"require": {
16-
"php": ">=5.5",
16+
"php": "^5.5 || ^7.0",
1717
"ext-ldap": "*"
1818
},
1919
"require-dev": {
20-
"zendframework/zend-config": "~2.5",
21-
"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",
2223
"fabpot/php-cs-fixer": "1.7.*",
23-
"phpunit/PHPUnit": "~4.0",
24-
"php-mock/php-mock-phpunit": "~0.3",
25-
"zendframework/zend-stdlib": "~2.5"
24+
"phpunit/PHPUnit": "^4.5",
25+
"php-mock/php-mock-phpunit": "~0.3"
2626
},
2727
"suggest": {
2828
"zendframework/zend-eventmanager": "Zend\\EventManager component"
@@ -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)