-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.travis.yml
More file actions
24 lines (20 loc) · 964 Bytes
/
.travis.yml
File metadata and controls
24 lines (20 loc) · 964 Bytes
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
php:
- 5.6
- 5.5
- 5.4
- 5.3
before_script:
- composer install --prefer-source --no-interaction --dev
- mkdir -p php/extensions && cd php/extensions && wget https://github.com/nicolasff/phpredis/archive/2.2.3.zip -O php-redis.zip && unzip php-redis.zip && cd phpredis-2.2.3 && phpize && echo "Configuring phpredis..." && ./configure > /dev/null && echo "Building phpredis..." && make -j4 > /dev/null && echo "Installing phpredis..." && sudo make install > /dev/null && cd ../../..
- echo 'extension=redis.so' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- echo 'extension=memcached.so' >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
script:
- ./vendor/bin/phpunit --coverage-clover=coverage.clover
after_success:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
# cache vendor dirs
cache:
directories:
- $COMPOSER_CACHE_DIR