Skip to content

Commit 5fef690

Browse files
committed
No longer run HHVM via Docker
1 parent 119a89f commit 5fef690

File tree

3 files changed

+1
-42
lines changed

3 files changed

+1
-42
lines changed

.travis.sh

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -2,51 +2,13 @@
22

33
XP_RUNNERS_URL=https://dl.bintray.com/xp-runners/generic/xp-run-master.sh
44

5-
wrap() {
6-
local image="$1"
7-
local cmd="$2"
8-
local target="$3"
9-
local wrapper=$(basename $target).in
10-
local wd=$(pwd)
11-
12-
mv $target $wrapper
13-
echo "#!/bin/sh" > $target
14-
echo "docker run --rm -v $wd:/opt/src -v $wd/php.ini:/etc/hhvm/php.ini -w /opt/src $image $cmd $wrapper \$@" >> $target
15-
chmod 755 $target
16-
}
17-
18-
replace_hhvm_with() {
19-
local version="$1"
20-
21-
printf "\033[33;1mReplacing HHVM\033[0m\n"
22-
docker pull hhvm/hhvm:$version
23-
docker run --rm hhvm/hhvm:$version hhvm --version
24-
echo
25-
26-
echo "hhvm.php7.all = 1" > php.ini
27-
echo "hhvm.hack.lang.look_for_typechecker = 0" >> php.ini
28-
wrap hhvm/hhvm:$version "hhvm --php" /home/travis/.phpenv/versions/hhvm/bin/composer
29-
wrap hhvm/hhvm:$version "sh" xp-run
30-
}
31-
325
case $1 in
336
install)
347
printf "\033[33;1mInstalling XP Runners\033[0m\n"
358
echo $XP_RUNNERS_URL
369
curl -SL $XP_RUNNERS_URL > xp-run
3710
echo
3811

39-
# Run HHVM inside Docker as the versions provided by Travis-CI are too old
40-
case "$TRAVIS_PHP_VERSION" in
41-
hhvm-nightly*)
42-
replace_hhvm_with "latest"
43-
;;
44-
45-
hhvm*)
46-
replace_hhvm_with "3.20.1"
47-
;;
48-
esac
49-
5012
printf "\033[33;1mRunning Composer\033[0m\n"
5113
composer install
5214
;;

.travis.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ dist: trusty
22

33
language: php
44

5-
services:
6-
- docker
7-
85
php:
96
- 7.0
107
- 7.1

src/main/php/lang/ClassLoader.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ protected static function defineForward($name, $func, $invoke) {
220220
$p= $param->getName();
221221

222222
if ($param->isVariadic()) {
223-
$sig.= defined('HHVM_VERSION') ? ',... $'.$p : ', '.$param->getType().'... $'.$p;
223+
$sig.= defined('HHVM_VERSION') ? ', ... $'.$p : ', '.$param->getType().'... $'.$p;
224224
$pass.= ', ...$'.$p;
225225
} else {
226226
$sig.= ', '.$param->getType().' $'.$p;

0 commit comments

Comments
 (0)