Skip to content
Permalink
Browse files

Use latest stable Zephir

  • Loading branch information...
sergeyklay authored and niden committed Jun 19, 2019
1 parent cacb317 commit 14226531db4466823c936f23de5c9a025e2773b9
Showing with 22 additions and 10 deletions.
  1. +3 −3 .ci/build.sh
  2. +14 −2 .ci/install-zephir.sh
  3. +2 −2 .travis.yml
  4. +3 −3 appveyor.yml
@@ -13,9 +13,9 @@ LCOV_REPORT=${PROJECT_ROOT}/tests/_output/lcov.info

shopt -s nullglob

zephir clean 2>&1
zephir fullclean 2>&1
zephir generate 2>&1
zephir clean 2>&1 || exit 1
zephir fullclean 2>&1 || exit 1
zephir generate 2>&1 || exit 1

if [[ -z ${CC+x} ]]; then
echo -e "The CC variable is unset or set to the empty string.\nSkip precompiling headers.\n"
@@ -8,6 +8,7 @@
# LICENSE.txt file that was distributed with this source code.

: ${ZEPHIR_PARSER_VERSION:=master}
: ${ZEPHIR_VERSION:=master}

# Install zephir_parser
git clone -b "${ZEPHIR_PARSER_VERSION}" --depth 1 -q https://github.com/phalcon/php-zephir-parser
@@ -18,8 +19,19 @@ make --silent -j"$(getconf _NPROCESSORS_ONLN)"
make --silent install
echo 'extension="zephir_parser.so"' > "$(phpenv root)/versions/$(phpenv version-name)/etc/conf.d/zephir_parser.ini"

wget --no-clobber -O $HOME/bin/zephir https://github.com/phalcon/zephir/releases/download/${ZEPHIR_VERSION}/zephir.phar
chmod +x $HOME/bin/zephir
# Install zephir
if [[ ! $ZEPHIR_VERSION =~ ^(master|development)$ ]]; then
wget \
--no-clobber \
-O $HOME/bin/zephir \
https://github.com/phalcon/zephir/releases/download/${ZEPHIR_VERSION}/zephir.phar
chmod +x $HOME/bin/zephir
else
git clone -b "${ZEPHIR_VERSION}" --depth 1 -q https://github.com/phalcon/zephir
cd zephir
composer install $DEFAULT_COMPOSER_FLAGS
ln -s $(pwd)/zephir $HOME/bin/zephir
fi

# Local variables:
# tab-width: 4
@@ -42,8 +42,8 @@ services:
env:
global:
- CC="gcc"
- ZEPHIR_VERSION="0.11.9"
- ZEPHIR_PARSER_VERSION="v1.2.0"
- ZEPHIR_VERSION="0.12.0"
- ZEPHIR_PARSER_VERSION="v1.3.0"
- RE2C_VERSION="1.1.1"
- REPORT_COVERAGE=1
- PATH="${HOME}/.composer/vendor/bin:${PATH}"
@@ -32,9 +32,9 @@ environment:
PHP_AVM: https://raw.githubusercontent.com/sergeyklay/php-appveyor/master/php-appveyor.psm1

PHP_SDK_VERSION: 2.1.9
ZEPHIR_PARSER_VERSION: 1.2.0
ZEPHIR_PARSER_RELEASE: 454
ZEPHIR_VERSION: 0.11.9
ZEPHIR_PARSER_VERSION: 1.3.0
ZEPHIR_PARSER_RELEASE: 476
ZEPHIR_VERSION: 0.12.0

TEST_PHP_EXECUTABLE: C:\php\php.exe
NO_INTERACTION: 1

0 comments on commit 1422653

Please sign in to comment.
You can’t perform that action at this time.