forked from phalcon/cphalcon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
103 lines (90 loc) · 2.63 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
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
language: php
sudo: required
dist: precise
php:
- 5.5
- 5.6
matrix:
allow_failures:
- php: 7.1
include:
- php: 7.0
env: ZEND_BACKEND="--backend=ZendEngine3"
- php: 7.1
env: ZEND_BACKEND="--backend=ZendEngine3"
git:
depth: 1
cache:
apt: true
ccache: true
timeout: 691200
directories:
- .temp
#- vendor
- $HOME/.ccache
- $HOME/.composer/cache
services:
- mongodb
- memcached
- redis-server
- postgresql
env:
global:
- TEST_BT_HOST="127.0.0.1"
- TEST_BT_PORT="11300"
- TEST_MC_HOST="127.0.0.1"
- TEST_MC_PORT="11211"
- TEST_DB_MYSQL_HOST="127.0.0.1"
- TEST_DB_MYSQL_PORT="3306"
- TEST_DB_MYSQL_USER="root"
- TEST_DB_MYSQL_PASSWD=""
- TEST_DB_MYSQL_NAME="phalcon_test"
- TEST_DB_MYSQL_CHARSET="utf8"
- TEST_DB_MYSQL_DSN="mysql:host=127.0.0.1;dbname=phalcon_test"
- TEST_DB_MONGO_HOST="127.0.0.1"
- TEST_DB_MONGO_PORT="27017"
- TEST_DB_MONGO_USER="admin"
- TEST_DB_MONGO_PASSWD=""
- TEST_DB_MONGO_NAME="phalcon_test"
- TEST_RS_HOST="127.0.0.1"
- TEST_RS_PORT="6379"
- ZEND_DONT_UNLOAD_MODULES=1
- CC="ccache gcc"
- PHPIZE_BIN="$(which phpize 2> /dev/null || which phpize5 2> /dev/null)"
before_install:
- export PATH=$PATH:~/bin;
- composer self-update -q
- travis_retry composer --prefer-source install
- bash tests/_ci/install_prereqs.sh
- bash tests/_ci/setup_dbs.sh
- bash tests/_ci/install_zephir.sh
- bash tests/_ci/install_beanstalkd.sh
- '( zephir fullclean && zephir generate $ZEND_BACKEND )'
before_script:
- (export PRE_PHP_INCLUDES=`php-config --includes`; cd ext/; for file in `find kernel -name "*.h"`; do $CC "$file" -I. $PRE_PHP_INCLUDES -o "$file.ghc"; done)
- (cd ext; export CFLAGS="-g3 -O1 -std=gnu90 -Wall -DZEPHIR_RELEASE=1"; $PHPIZE_BIN &> /dev/null && ./configure --silent --enable-phalcon &> /dev/null && make --silent -j4 &> /dev/null && make --silent install)
- phpenv config-add tests/_ci/phalcon.ini
- php --ri phalcon
- phpenv config-add tests/_ci/redis.ini
- php -m
- pecl list
- ulimit -c unlimited -S || true
- echo '/tmp/core_%e.%p' | sudo tee /proc/sys/kernel/core_pattern &> /dev/null
- echo "opcache.enable_cli=1" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
script:
- vendor/bin/phpunit --bootstrap tests/_ci/phpunit.php --debug unit-tests/
- vendor/bin/codecept build
- vendor/bin/codecept run -v
after_failure:
- bash tests/_ci/after_failure.sh
notifications:
email:
addons:
apt:
packages:
- gdb
- re2c