Skip to content

Commit 922aa0f

Browse files
committed
Fixed Travis build
1 parent a889567 commit 922aa0f

File tree

1 file changed

+7
-23
lines changed

1 file changed

+7
-23
lines changed

unit-tests/ci/install-travis

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,19 @@
1616
set -e
1717

1818
# Ensure that this is being run inside a CI container
19-
if [ "${CI}" != "true" ]; then
20-
echo "This script is designed to run inside a CI container only. Exiting"
21-
exit 1
22-
fi
19+
#if [ "${CI}" != "true" ]; then
20+
#echo "This script is designed to run inside a CI container only. Exiting"
21+
#exit 1
22+
#fi
2323

2424
CURRENT_DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
2525

26-
CC=${CC:-}
26+
CC=${CC:-gcc}
2727

2828
PHPIZE_BIN=$(phpenv which phpize)
2929
PHP_CONFIG_BIN=$(phpenv which php-config)
30-
GCC_BIN=${GCC_BIN:-$(command -v gcc 2>/dev/null)}
31-
CLANG_BIN=${CLANG_BIN:-$(command -v clang 2>/dev/null)}
3230

31+
GCC_BIN=$(command -v $CC 2>/dev/null)
3332
RE2C_BIN=${RE2C_BIN:-$(command -v re2c 2>/dev/null)}
3433

3534
if [ x"$CC" = x ]; then
@@ -55,21 +54,6 @@ if [ ! -f lemon ]; then
5554
${CC} lemon.c -o lemon
5655
fi
5756

58-
echo -e "Generating PHP 5 parser..."
59-
./lemon -s parser.php5.lemon
60-
if [ ! -f parser.php5.c ]; then
61-
echo "error: couldn't generate parser"
62-
exit 2
63-
fi
64-
echo
65-
66-
./lemon -s parser.php7.lemon
67-
if [ ! -f parser.php7.c ]; then
68-
echo "error: couldn't generate parser"
69-
exit 2
70-
fi
71-
echo
72-
7357
PHP_FULL_VERSION=`${PHP_CONFIG_BIN} --version`
7458

7559
if [ $? != 0 ]; then
@@ -93,7 +77,7 @@ else
9377
PHP_VERSION="php7"
9478
fi
9579

96-
echo -e "Generating parser..."
80+
echo -e "Generating parser [parser.${PHP_VERSION}.lemon]..."
9781
./lemon -s parser.${PHP_VERSION}.lemon
9882

9983
if [ ! -f parser.${PHP_VERSION}.c ]; then

0 commit comments

Comments
 (0)