Skip to content

Commit

Permalink
Attempt at fixing Travis for php 7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
gggeek committed Sep 3, 2017
1 parent ae1ecdc commit 509dee3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: php

# the current Travis VMs are based on Ubuntu Trusty. Alas, those do not have php 5.3 available. SO we keep using Precise...
# the current Travis VMs are based on Ubuntu Trusty. Alas, those do not have php 5.3 available. So we keep using Precise...
dist: precise

php:
Expand All @@ -11,7 +11,7 @@ php:
- 7.0
- 7.1
- 7.2
# hhvm is not available any more on default travis images
# hhvm is not available any more on Precise images
#- hhvm

before_install:
Expand Down
3 changes: 3 additions & 0 deletions tests/ci/travis/setup_php_fpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ fi
if [ "$TRAVIS_PHP_VERSION" = "7.1" -a -n "$(ls -A ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.d)" ]; then
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
fi
if [ "$TRAVIS_PHP_VERSION" = "7.2" -a -n "$(ls -A ~/.phpenv/versions/$(phpenv version-name)/etc/php-fpm.d)" ]; then
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
fi
echo "cgi.fix_pathinfo = 1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
echo "always_populate_raw_post_data = -1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
~/.phpenv/versions/$(phpenv version-name)/sbin/php-fpm

0 comments on commit 509dee3

Please sign in to comment.