-
-
Notifications
You must be signed in to change notification settings - Fork 338
/
.travis.yml
50 lines (40 loc) · 1.45 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
language: php
php:
- 5.4
- 5.5
- 5.6
services:
- memcached
- mysql
env:
- TEST_BS_HOST=127.0.0.1 TEST_BS_PORT=11301
cache:
directories:
- vendor
- $HOME/.composer/cache
env:
- 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:
- sudo apt-get update -qq
- sudo apt-get install -y beanstalkd
- sudo beanstalkd -l ${TEST_BS_HOST} -p ${TEST_BS_PORT} &
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="-g3 -O1 -fno-delete-null-pointer-checks -Wall"; phpize &> /dev/null && ./configure --silent --enable-phalcon &> /dev/null && make --silent -j4 > /dev/null && make --silent install && phpenv config-add ../unit-tests/ci/phalcon.ini &> /dev/null)
- php -r 'echo \Phalcon\Version::get()."\n";'
- composer install
before_script:
- mysql -e 'create database incubator_tests charset=utf8mb4 collate=utf8mb4_unicode_ci;'
- cat tests/travis/db_schema.sql | mysql incubator_tests
script:
- php vendor/bin/phpcs --standard=PSR2 --encoding=utf-8 Library/
- phpunit --configuration tests/phpunit.xml.dist --coverage-clover=coverage.clover
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
- mysql -e 'DROP DATABASE incubator_tests;'