Skip to content

Commit

Permalink
Merge pull request #2082 from phalcon/development
Browse files Browse the repository at this point in the history
0.12.18
  • Loading branch information
sergeyklay authored Apr 24, 2020
2 parents 6724dbf + 33e51ee commit 26d4745
Show file tree
Hide file tree
Showing 167 changed files with 4,567 additions and 3,097 deletions.
34 changes: 34 additions & 0 deletions .ci/install-zephir-parser.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
#!/usr/bin/env bash
#
# This file is part of the Zephir.
#
# (c) Zephir Team <[email protected]>
#
# For the full copyright and license information, please view the
# LICENSE file that was distributed with this source code.

# -e Exit immediately if a command exits with a non-zero status.
# -u Treat unset variables as an error when substituting.
set -eu

: "${ZEPHIR_PARSER_VERSION:=development}"
PHP_VERSION=$1

echo "Install Zephir Parser using version: $ZEPHIR_PARSER_VERSION"

git clone -b "$ZEPHIR_PARSER_VERSION" \
--depth 1 \
-q https://github.com/phalcon/php-zephir-parser \
php-zephir-parser

cd php-zephir-parser || exit 1

phpize
./configure --with-php-config=/usr/bin/php-config --enable-zephir_parser
make -j"$(getconf _NPROCESSORS_ONLN)"
sudo make install

echo 'extension="zephir_parser.so"' |\
sudo tee "/etc/php/$PHP_VERSION/cli/conf.d/zephir_parser.ini"

php --ri "Zephir Parser"
Loading

0 comments on commit 26d4745

Please sign in to comment.