-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.travis.yml
executable file
·29 lines (23 loc) · 970 Bytes
/
.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
language: php
php:
- 5.6
env:
global:
- TEST_HOST=127.0.0.1
matrix:
- PHALCON_VERSION="2.0.9"
install:
- 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";'
- travis_retry composer self-update
- travis_retry composer install --prefer-source --no-interaction --dev
before_script:
- mysql -e 'CREATE DATABASE biller_tests charset=utf8mb4 collate=utf8mb4_unicode_ci;'
- mkdir .phalcon
- vendor/bin/phalcon.php migration --action=run --migrations=migrations --config=tests/config.php
script:
- vendor/bin/phpunit
notifications:
on_success: never
on_failure: always