forked from phalcon/incubator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
101 lines (91 loc) · 2.97 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
language: php
php:
- 5.4
- 5.5
- 5.6
sudo: required
dist: precise
group: edge
services:
- memcached
- mysql
- mongodb
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_AS_HOST="127.0.0.1"
- TEST_AS_PORT="3000"
- TEST_DB_HOST="127.0.0.1"
- TEST_DB_PORT="3306"
- TEST_DB_USER="root"
- TEST_DB_PASSWD=""
- TEST_DB_NAME="incubator_tests"
- TEST_DB_CHARSET="utf8"
matrix:
- PHALCON_VERSION="2.0.13"
- PHALCON_VERSION="2.0.12"
- PHALCON_VERSION="2.0.11"
- PHALCON_VERSION="2.0.10"
- PHALCON_VERSION="2.0.9"
- PHALCON_VERSION="2.0.8"
- PHALCON_VERSION="2.0.7"
- PHALCON_VERSION="2.0.6"
- PHALCON_VERSION="2.0.5"
- PHALCON_VERSION="2.0.4"
before_install:
- phpenv config-rm xdebug.ini
- bash tests/_ci/setup_beanstalkd.sh
- beanstalkd -v
- beanstalkd -l ${TEST_BT_HOST} -p ${TEST_BT_PORT} & # start queue listener
- sleep 5
- cd $TRAVIS_BUILD_DIR
- pecl channel-update pecl.php.net
- (CFLAGS="-O1 -g3 -fno-strict-aliasing"; pecl install yaml < /dev/null &)
- phpenv config-add tests/_ci/yaml.ini
- pecl install mongo < /dev/null &
- phpenv config-add tests/_ci/mongo.ini
- phpenv config-add tests/_ci/memcached.ini
- wget -O aerospike.tgz 'http://aerospike.com/download/server/latest/artifact/ubuntu12'
- tar -xvf aerospike.tgz
- cd aerospike-server-community-*-ubuntu12*
- sudo ./asinstall
- sudo service aerospike start
- sudo service aerospike status
- sleep 5
- cd $TRAVIS_BUILD_DIR
install:
- composer self-update
- git clone -q --depth=1 https://github.com/phalcon/cphalcon.git -b phalcon-v${PHALCON_VERSION}
- (cd cphalcon/ext; export CFLAGS="-g0 -O0 -std=gnu90"; phpize &> /dev/null && ./configure --silent --enable-phalcon &> /dev/null && make --silent -j2 &> /dev/null && make --silent install && phpenv config-add ../unit-tests/ci/phalcon.ini &> /dev/null)
- php --ri phalcon
- travis_retry composer require aerospike/aerospike-client-php "*"
- find vendor/aerospike/aerospike-client-php/ -name "*.sh" -exec chmod +x {} \;
- cd vendor/aerospike/aerospike-client-php
- sudo $(which composer) run-script -q post-install-cmd
- cd $TRAVIS_BUILD_DIR
- echo "extension=${TRAVIS_BUILD_DIR}/vendor/aerospike/aerospike-client-php/src/aerospike/modules/aerospike.so" | tee -a tests/_ci/aerospike.ini
- phpenv config-add tests/_ci/aerospike.ini
- php -m
- travis_retry composer install --prefer-source --no-interaction
before_script:
- stty cols 160
- mysql -e 'create database incubator_tests charset=utf8mb4 collate=utf8mb4_unicode_ci;'
script:
- vendor/bin/phpcs --standard=PSR2 --colors --extensions=php --encoding=utf-8 Library/
- vendor/bin/codecept build
- vendor/bin/codecept run
addons:
apt:
packages:
- libyaml-dev
- libssl-dev
- autoconf
notifications:
email:
recipients:
on_success: change
on_failure: always