forked from zephir-lang/zephir
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
84 lines (72 loc) · 2 KB
/
.travis.yml
File metadata and controls
84 lines (72 loc) · 2 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
language: php
sudo: false
php:
# The PHP 5.4 is no longer supported
# - 5.4
- 5.5
- 5.6
- 7.0
- 7.1
git:
depth: 1
compiler:
- gcc
- clang
env:
global:
- 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"
- CFLAGS="-g3 -O0 -Wall -fvisibility=hidden"
- ZEPHIR_PARSER_VERSION="v1.0.2"
matrix:
- CC="ccache gcc"
- CC="clang"
matrix:
fast_finish: true
allow_failures:
- php: nightly
include:
- env: CC="ccache gcc"
php: nightly
compiler: gcc
- env: CC="clang"
php: nightly
compiler: clang
cache:
apt: true
ccache: true
timeout: 691200
directories:
- vendor
- $HOME/.ccache
- $HOME/.composer/cache
install:
- composer --prefer-source install
- bash unit-tests/ci/install_zephir_parser.sh
- ./install
before_script:
- $(phpenv which php) -d safe_mode=Off -d enable_dl=On compiler.php generate
- $(phpenv which php) compiler.php stubs
- $(phpenv which php) compiler.php api
- (cd ext; $(phpenv which phpize) && ./configure --silent --with-php-config=$(phpenv which php-config) --enable-test && make -j"$(getconf _NPROCESSORS_ONLN)" && make --silent install && phpenv config-add ../unit-tests/ci/test.ini)
- ulimit -c unlimited || true
- $CC --version
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 ./unit-tests/phpunit --not-exit -c phpunit.xml.dist --debug unit-tests/
- $(phpenv which php) unit-tests/microbench.php
after_failure:
- ./unit-tests/ci/after_failure.sh
notifications:
email:
recipients:
on_success: change
on_failure: always
addons:
apt:
packages:
- re2c
- valgrind
- gdb