Skip to content

Commit 22ee764

Browse files
committed
Install extension
1 parent bfa4f0d commit 22ee764

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

.travis.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
language: php
22

33
dist: trusty
4-
sudo: required
4+
sudo: false
55

66
php:
77
- 5.4
@@ -49,6 +49,11 @@ cache:
4949

5050
install:
5151
- bash ./build-linux
52+
- $(phpenv which phpize)
53+
- ./configure --with-php-config=$(phpenv which php-config) --enable-zephir_parser
54+
- make -j"$(getconf _NPROCESSORS_ONLN)"
55+
- make install
56+
- phpenv config-add ../zephir_parser.ini
5257

5358
before_install:
5459
- if [[ ! -z "${GH_TOKEN}" ]]; then composer config github-oauth.github.com ${GH_TOKEN}; echo "Configured Github token"; fi;

config.m4

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ dnl Comments in this file start with the string 'dnl'.
55
dnl Remove where necessary. This file will not work
66
dnl without editing.
77

8-
PHP_ARG_ENABLE(zephir-parser, whether to enable zephir_parser,
9-
[ --enable-zephir-parser Enable Zephir Parser])
8+
PHP_ARG_ENABLE(zephir_parser, whether to enable zephir_parser,
9+
[ --enable-zephir_parser Enable Zephir Parser])
1010

1111
if test "$PHP_ZEPHIR_PARSER" = "yes"; then
1212
AC_DEFINE(HAVE_ZEPHIR_PARSER, 1, [Whether you have zephir_parser])

config.w32

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG_ENABLE("zephir-parser", "enable zephir_parser", "no");
1+
ARG_ENABLE("zephir_parser", "enable zephir_parser", "no");
22

33
if (PHP_ZEPHIR_PARSER != "no") {
44
EXTENSION("zephir_parser", "zephir_parser.c", null, "-I"+configure_module_dirname);

zephir_parser.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[zephir_parser]
2+
extension=zephir_parser.so

0 commit comments

Comments
 (0)