forked from zephir-lang/zephir
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
38 lines (30 loc) · 1.1 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
cache:
- apt
before_install:
- git submodule --quiet update --init --recursive
- ./unit-tests/ci/before_install.sh
install:
- composer --prefer-source install
before_script:
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:"/usr/local/lib"
- $(phpenv which php) compiler.php generate
- $(phpenv which php) compiler.php stubs
- $(phpenv which php) compiler.php api
- (cd ext; export CFLAGS="-g3 -O1 -fno-delete-null-pointer-checks -Wall -fvisibility=hidden -DZEPHIR_RELEASE=1"; phpize && ./configure --silent --enable-test && make -j2 && sudo make install && phpenv config-add ../unit-tests/ci/test.ini)
- ulimit -c unlimited || true
script:
- vendor/bin/phpcs --standard=PSR2 --report=emacs --extensions=php --warning-severity=0 Library/ unit-tests/Extension/ unit-tests/Zephir/
- valgrind --read-var-info=yes --error-exitcode=1 --fullpath-after= --track-origins=yes --leak-check=full phpunit --debug
after_failure:
- sudo apt-get -qq install gdb
- ./unit-tests/ci/after_failure.sh
notifications:
email: