forked from dreamsxin/cphalcon7
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
83 lines (70 loc) · 1.88 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
language: php
sudo: required
dist: trusty
addons:
apt:
packages:
- beanstalkd
- gdb
- re2c
- libpng12-dev
- libqrencode-dev
- libzbar-dev
- imagemagick
- libmagick++-dev
- libmagickcore-dev
- libmagickwand-dev
- pkg-config
- libssl-dev
- libsasl2-dev
- libleveldb-dev
php:
- 7.4
- nightly
matrix:
fast_finish: true
allow_failures:
- php: nightly
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_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"
#- ENABLE_MAINTAINER_ZTS=1 ENABLE_DEBUG=1 USE_ZEND_ALLOC=0
- CC="ccache gcc"
before_install:
- export PATH=$PATH:~/bin;
- export LD_LIBRARY_PATH=/usr/lib:/usr/lib64:/lib:/lib64:/usr/local/lib:/usr/local/lib64:$LD_LIBRARY_PATH
- composer self-update -q
- travis_retry composer --prefer-source install
- ./unit-tests/ci/install_prereqs.sh
- ./unit-tests/ci/setup_dbs.sh
before_script:
- (cd ext; export CFLAGS="-g -O0 -std=gnu90 -Wall -Werror -Wno-error=uninitialized"; phpize && ./configure --enable-chart=yes --enable-qrcode=yes --enable-process=yes --enable-intrusive=yes --enable-storage-bloomfilter=yes --enable-storage-datrie=yes && make --silent -j4 > /dev/null && make --silent install && phpenv config-add ../unit-tests/ci/20-phalcon.ini)
- ulimit -c unlimited -S || true
- echo '/tmp/core_%e.%p' | sudo tee /proc/sys/kernel/core_pattern &> /dev/null
script:
- vendor/bin/phpunit --stderr --debug unit-tests/
after_failure:
- bash unit-tests/ci/after_failure.sh
notifications:
email: