Skip to content

Commit b2cb523

Browse files
authored
Merge pull request #338 from Geolim4/final
Updated TravisCi settings: - Added nighlty + hhvm to tests - Added allowed failure for nighlty + hhvm - Fixed code execution on tests - Added php.ini condition for hhvm/php
2 parents c3da92a + 0920ea7 commit b2cb523

File tree

2 files changed

+20
-3
lines changed

2 files changed

+20
-3
lines changed

.travis.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,39 @@
88
# @author Khoa Bui (khoaofgod) <[email protected]> http://www.phpfastcache.com
99
# @author Georges.L (Geolim4) <[email protected]>
1010
#
11+
sudo: false
1112

1213
language: php
14+
1315
services:
1416
- memcached
1517
# - redis-server
16-
before_script: phpenv config-add var/php/conf/phpfastcache.ini
18+
before_script:
19+
- |
20+
if [[ $TRAVIS_PHP_VERSION = "hhv"* ]]; then
21+
cat var/php/conf/phpfastcache.ini >> /etc/hhvm/php.ini
22+
else
23+
phpenv config-add var/php/conf/phpfastcache.ini
24+
fi
25+
1726
php:
1827
# - 5.3
1928
# - 5.4
2029
- 5.5
2130
- 5.6
2231
- 7.0
2332
- nightly
24-
# - hhvm We may need to do review this check later
33+
- hhvm
34+
35+
matrix:
36+
fast_finish: true
37+
allow_failures:
38+
- php: nightly
39+
- php: hhvm
40+
2541
install:
2642
- ./bin/ci/install_dependencies.sh
43+
2744
script:
2845
- php -f tests/SyntaxChecker.test.php
2946
- php -f tests/Autoload.test.php

tests/SyntaxChecker.test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function read_dir($dir, $ext = null)
3939
* @todo Make the exclusions much cleaner
4040
*/
4141
if (strpos($file, '/vendor/composer') === false && strpos($file, '/bin/stubs') === false) {
42-
exec('php -lf "' . $file . '"', $output, $status);
42+
exec('php -l "' . $file . '"', $output, $status);
4343
} else {
4444
echo '[SKIP] ' . $file;
4545
echo "\n";

0 commit comments

Comments
 (0)