forked from googleapis/google-api-php-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
24 lines (19 loc) · 756 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
language: php
services:
- memcached
env:
- MEMCACHE_HOST=127.0.0.1 MEMCACHE_PORT=11211
php:
# Can't test against 5.2; openssl is not available:
# http://docs.travis-ci.com/user/languages/php/#PHP-installation
- 5.3
- 5.4
- 5.5
before_script:
- composer install
- echo "extension=memcache.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- echo "extension=memcached.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- phpenv version-name | grep ^5.[34] && echo "extension=apc.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini ; true
- phpenv version-name | grep ^5.[34] && echo "apc.enable_cli=1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini ; true
script:
- cd tests ; phpunit .