-
Notifications
You must be signed in to change notification settings - Fork 19
/
.travis.yml
61 lines (49 loc) · 1.42 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
language: php
php:
# - 5.4
# - 5.5
# - 5.6
- 7.0
# - hhvm
env:
- CUBRID_VERSION=9.3.0/CUBRID-9.3.0.0206 CUBRID_PDO_VERSION=9.3.0.0001
services:
- memcached
# faster builds on new travis setup not using sudo
sudo: false
# cache vendor dirs
cache:
directories:
# - cubrid/9.3.0
- vendor
- $HOME/.composer/cache
# try running against postgres 9.3
#addons:
# postgresql: "9.3"
install:
- travis_retry composer self-update && composer --version
- travis_retry composer global require "fxp/composer-asset-plugin:~1.1.1"
- export PATH="$HOME/.composer/vendor/bin:$PATH"
# core framework:
- travis_retry composer install --prefer-dist --no-interaction
before_script:
# show some versions and env information
- php -r "echo INTL_ICU_VERSION . \"\n\";"
- php -r "echo INTL_ICU_DATA_VERSION . \"\n\";"
- mysql --version
# - psql --version
# initialize databases
# - mysql -e 'CREATE DATABASE yiitest;';
# - psql -U postgres -c 'CREATE DATABASE yiitest;';
# - |
# if [ $TRAVIS_PHP_VERSION = '5.6' ]; then
# PHPUNIT_FLAGS="--coverage-clover=coverage.clover"
# fi
#script:
# - vendor/bin/phpunit --verbose $PHPUNIT_FLAGS --exclude-group mssql,oci,wincache,xcache,zenddata,cubrid
#after_script:
# - |
# if [ $TRAVIS_PHP_VERSION = '5.6' ]; then
# travis_retry wget https://scrutinizer-ci.com/ocular.phar
# php ocular.phar code-coverage:upload --format=php-clover coverage.clover
# fi