-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
57 lines (47 loc) · 1.48 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
language: php
dist: trusty
sudo: required
php:
- 7.1
git:
depth: 1
#cache:
# apt: true
# ccache: true
# timeout: 691200
# directories:
# - .temp
# - $HOME/.ccache
env:
global:
- ZEND_DONT_UNLOAD_MODULES=1
- CC="ccache gcc"
- PATH="$PATH:~/bin"
- LD_LIBRARY_PATH="$TRAVIS_BUILD_DIR/build/lib":$LD_LIBRARY_PATH
- LIBRARY_PATH="$TRAVIS_BUILD_DIR/build/lib":$LIBRARY_PATH
- C_INCLUDE_PATH="$TRAVIS_BUILD_DIR/build/include"
before_install:
- phpenv config-rm xdebug.ini || true
- sudo ln -s /home/travis/.phpenv/versions/$(phpenv version-name)/bin/phpize /usr/bin/
- sudo ln -s /home/travis/.phpenv/versions/$(phpenv version-name)/bin/php-config /usr/bin/
install:
- git clone -q --depth=1 https://github.com/phalcon/zephir.git ./zephir
- bash ./tests/install_zephir.sh
- zephir fullclean && zephir generate --backend=ZendEngine3
- bash ./tests/install.sh
- php -m | grep group
before_script:
- echo '/tmp/core_%e.%p' | sudo tee /proc/sys/kernel/core_pattern &> /dev/null
- echo "memory_limit=-1" | sudo tee ${INI_DIR}/000-initial.ini
- ulimit -c unlimited || true
script:
- valgrind --read-var-info=yes --error-exitcode=1 --fullpath-after= --track-origins=yes --leak-check=full php tests/test1.php
- valgrind --read-var-info=yes --error-exitcode=1 --fullpath-after= --track-origins=yes --leak-check=full php tests/test2.php
after_failure:
- bash ./tests/after_failure.sh
addons:
apt:
packages:
- re2c
- valgrind
- gdb