Skip to content

Commit 5bcb71a

Browse files
committed
Install PHPUnit
1 parent e0f8931 commit 5bcb71a

File tree

5 files changed

+17
-1
lines changed

5 files changed

+17
-1
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,6 @@ parser/parser.php5.out
5555
parser/parser.php7.c
5656
parser/parser.php7.h
5757
parser/parser.php7.out
58+
59+
vendor
60+
composer.lock

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ cache:
4949

5050
install:
5151
- bash ./tests/ci/install-travis
52+
- composer --prefer-source install
5253

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

appveyor.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ environment:
1111
PHP_VC: 11
1212
platform: x86
1313

14+
cache:
15+
- vendor -> composer.json
16+
1417
os: Windows Server 2012 R2
1518
clone_folder: c:\projects\php-zephir-parser
1619

@@ -65,6 +68,9 @@ install:
6568
- 'echo extension=php_gmp.dll >> php.ini'
6669
- 'set PATH=%cd%;%PATH%'
6770

71+
- echo Install dev dependencies
72+
- if not exist vendor (php -r "readfile('https://getcomposer.org/installer');" | php & php composer.phar --prefer-source install)
73+
6874
build_script:
6975
- cd %APPVEYOR_BUILD_FOLDER%
7076
- '%PHP_DEVPACK%\\phpize --clean'

composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"require": {
3+
"phpunit/phpunit": "^4.8"
4+
}
5+
}

install-development

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ RE2C_BIN=$(command -v re2c 2>/dev/null)
3434
CCACHE_BIN=$(command -v ccache 2>/dev/null)
3535
PHPIZE_BIN=$(command -v phpize 2>/dev/null)
3636
PHPCONFIG_BIN=$(command -v php-config 2>/dev/null)
37+
SACN_BUILD_BIN=$(command -v scan-build 2>/dev/null)
3738

3839
if [ x"$RE2C_BIN" = x ]; then
3940
echo -e "error: unable to locate the re2c"
@@ -167,7 +168,7 @@ ${PHPIZE_BIN}
167168
--with-php-config=${PHPCONFIG_BIN} \
168169
--enable-zephir_parser
169170

170-
make -s -j"$(getconf _NPROCESSORS_ONLN)"
171+
make -j"$(getconf _NPROCESSORS_ONLN)"
171172

172173
make test CFLAGS="-O0 -g" NO_INTERACTION=1
173174

0 commit comments

Comments
 (0)