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

Commit 4c8e363

Browse files
authored
Merge pull request #137 from magnetik/master-tests
Add PHP 7.2 to tested versions
2 parents 17f8ad0 + 993740f commit 4c8e363

File tree

4 files changed

+24
-15
lines changed

4 files changed

+24
-15
lines changed

.travis.yml

+16-12
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
11
language: php
22
sudo: false
3-
dist: precise
3+
dist: trusty
44

5-
php:
6-
- 5.3
7-
- 5.4
8-
- 5.5
9-
- 5.6
10-
- 7.0
11-
- 7.1
12-
- nightly
13-
- hhvm
5+
cache:
6+
directories:
7+
- $HOME/.composer/cache
148

159
services:
1610
- riak
@@ -22,7 +16,7 @@ before_script:
2216
- ./Tests/travis/install-deps.sh
2317
- composer self-update
2418
- if [ "$DEPS" = "dev" ]; then perl -pi -e 's/^}$/,"minimum-stability":"dev"}/' composer.json; fi;
25-
- composer update --prefer-source
19+
- composer update --prefer-dist
2620

2721
script:
2822
- ./vendor/bin/phpunit -v --coverage-clover ./build/logs/clover.xml
@@ -32,9 +26,19 @@ after_script:
3226
- php ./vendor/bin/coveralls -v
3327

3428
matrix:
29+
exclude:
30+
- php: 5.3
31+
dist: trusty
3532
allow_failures:
3633
- php: nightly
37-
- php: hhvm
3834
include:
35+
- php: 5.3
36+
dist: precise
37+
- php: 5.4
38+
- php: 5.5
3939
- php: 5.6
4040
env: DEPS="dev"
41+
- php: 7.0
42+
- php: 7.1
43+
- php: 7.2
44+
- php: nightly

Tests/travis/install-deps.sh

+7
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,12 @@ if [ "$TRAVIS_PHP_VERSION" = "hhvm" ]; then
66
exit 0;
77
fi
88

9+
VERSION_NAME=$(phpenv version-name)
10+
11+
if [ $VERSION_NAME = "5.3" ] || [ $VERSION_NAME = "5.4" ] || [ $VERSION_NAME = "5.5" ] || [ $VERSION_NAME = "5.6" ]; then
12+
echo "extension = mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
13+
echo "extension = memcache.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
14+
fi
15+
916
pecl install riak
1017
phpenv config-add $BASEDIR/php.ini

Tests/travis/php.ini

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
extension="mongo.so"
2-
extension="memcache.so"
31
extension="memcached.so"
42

53
apc.enabled=1

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"doctrine/cache": "^1.4.2"
3939
},
4040
"require-dev": {
41-
"phpunit/phpunit": "~4",
41+
"phpunit/phpunit": "~4|~5",
4242
"symfony/phpunit-bridge": "~2.7|~3.3|~4.0",
4343
"symfony/yaml": "~2.7|~3.3|~4.0",
4444
"symfony/validator": "~2.7|~3.3|~4.0",

0 commit comments

Comments
 (0)