mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-12 10:26:32 +00:00
fix travis build matrix to support 7.x and hhvm
This commit is contained in:
committed by
Fabien Potencier
parent
9eeaa699ca
commit
12e75458bc
+25
-24
@@ -3,36 +3,37 @@ language: php
|
||||
sudo: false
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- vendor
|
||||
- $HOME/.composer/cache/files
|
||||
directories:
|
||||
- vendor
|
||||
- $HOME/.composer/cache/files
|
||||
|
||||
php:
|
||||
- 5.6
|
||||
- 7.0
|
||||
- 7.1
|
||||
- hhvm
|
||||
|
||||
env:
|
||||
- TWIG_EXT=no
|
||||
- TWIG_EXT=yes
|
||||
matrix:
|
||||
include:
|
||||
- php: hhvm-stable
|
||||
sudo: required
|
||||
dist: trusty
|
||||
group: edge
|
||||
env: TWIG_EXT=no
|
||||
- php: 7.0
|
||||
env: TWIG_EXT=no
|
||||
- php: 7.1
|
||||
env: TWIG_EXT=no
|
||||
allow_failures:
|
||||
- php: hhvm-stable
|
||||
sudo: required
|
||||
dist: trusty
|
||||
group: edge
|
||||
env: TWIG_EXT=no
|
||||
fast_finish: true
|
||||
|
||||
before_install:
|
||||
- if [[ ! $TRAVIS_PHP_VERSION = hhvm* ]]; then phpenv config-rm xdebug.ini || echo "xdebug not available"; fi
|
||||
- if [[ ! $TRAVIS_PHP_VERSION = hhvm* ]]; then phpenv config-rm xdebug.ini || echo "xdebug not available"; fi
|
||||
- if [[ $TRAVIS_PHP_VERSION = hhvm* ]]; then echo hhvm.php7.all=1 >> /etc/hhvm/php.ini; fi
|
||||
|
||||
install:
|
||||
- travis_retry composer install
|
||||
|
||||
before_script:
|
||||
- if [ "$TWIG_EXT" == "yes" ]; then sh -c "cd ext/twig && phpize && ./configure --enable-twig && make && make install"; fi
|
||||
- if [ "$TWIG_EXT" == "yes" ]; then echo "extension=twig.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`; fi
|
||||
- if [ "$TWIG_EXT" == "yes" ]; then sh -c "cd ext/twig && phpize && ./configure --enable-twig && make && make install"; fi
|
||||
- if [ "$TWIG_EXT" == "yes" ]; then echo "extension=twig.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`; fi
|
||||
|
||||
matrix:
|
||||
fast_finish: true
|
||||
exclude:
|
||||
- php: hhvm
|
||||
env: TWIG_EXT=yes
|
||||
- php: 7.0
|
||||
env: TWIG_EXT=yes
|
||||
- php: 7.1
|
||||
env: TWIG_EXT=yes
|
||||
|
||||
+2
-2
@@ -27,7 +27,7 @@
|
||||
"forum": "https://groups.google.com/forum/#!forum/twig-users"
|
||||
},
|
||||
"require": {
|
||||
"php": "^5.6|^7.0",
|
||||
"php": "^7.0",
|
||||
"symfony/polyfill-mbstring": "~1.0"
|
||||
},
|
||||
"require-dev": {
|
||||
@@ -50,4 +50,4 @@
|
||||
}
|
||||
},
|
||||
"minimum-stability": "dev"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user