File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ if [[ ! -e "$EXPECTED_AST_FILE" ]]; then
25
25
26
26
git clone --depth 1 https://github.com/nikic/php-ast.git php-ast
27
27
28
+ export CFLAGS=" -O3"
28
29
pushd php-ast
29
30
# Install the ast extension
30
31
phpize
37
38
echo " Using cached extension."
38
39
fi
39
40
40
- php -r ' function_exists("ast\parse_code") || exit("Failed to enable php-ast");'
41
-
42
41
echo " extension=$EXPECTED_AST_FILE " >> ~ /.phpenv/versions/$( phpenv version-name) /etc/php.ini
43
42
43
+ php -r ' function_exists("ast\parse_code") || (print("Failed to enable php-ast\n") && exit(1));'
44
+
44
45
# Disable xdebug, since we aren't currently gathering code coverage data and
45
46
# having xdebug slows down Composer a bit.
46
- phpenv config-rm xdebug.ini
47
+ # TODO(optional): Once xdebug is enabled for PHP 7.3 on Travis, get rid of the '|| true'
48
+ phpenv config-rm xdebug.ini || true
You can’t perform that action at this time.
0 commit comments