-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
30 lines (26 loc) · 967 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
25
26
27
28
29
30
language: php
php:
- 5.6
- 7.0
- 7.1
- 7.2
- 7.3
cache:
directories:
- "$HOME/.composer/cache"
before_install:
- sudo apt-get -y update
- sudo apt-get -y install libmemcached-dev
- pecl channel-update pecl.php.net
- travis_retry composer self-update
- composer install
- gem install mime-types -v 2.99.1
- sudo cp ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf.default ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.conf
- sudo cp ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.d/www.conf.default ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.d/www.conf 2>/dev/null || true
- echo "cgi.fix_pathinfo = 1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- ~/.phpenv/versions/$(phpenv version-name)/sbin/php-fpm
script:
- vendor/bin/phpunit --coverage-clover=coverage.xml
after_success:
- bash <(curl -s https://codecov.io/bash)
- vendor/bin/codacycoverage clover coverage.xml