.travis.yml 993 Bytes
Newer Older
Taufan Aditya committed
1 2 3 4 5
language: php

php:
  - 5.4
  - 5.5
6
#  - hhvm # commented until composer or hhvm get fixed: https://github.com/facebook/hhvm/issues/1347
Taufan Aditya committed
7

8 9
services:
  - redis-server
10
  - memcached
11
  - elasticsearch
Carsten Brandt committed
12
  - mongodb
13

Carsten Brandt committed
14
install:
15
  - composer self-update && composer --version
Carsten Brandt committed
16
#  - composer require satooshi/php-coveralls 0.6.* --dev --prefer-dist
Carsten Brandt committed
17
  - tests/unit/data/travis/mongodb-setup.sh
18 19
  - tests/unit/data/travis/apc-setup.sh
  - tests/unit/data/travis/memcache-setup.sh
20
  - tests/unit/data/travis/cubrid-setup.sh
DaSourcerer committed
21

Carsten Brandt committed
22
before_script:
23
  - echo 'elasticsearch version ' && curl http://localhost:9200/
Carsten Brandt committed
24 25
  - mysql -e 'CREATE DATABASE yiitest;';
  - psql -U postgres -c 'CREATE DATABASE yiitest;';
Carsten Brandt committed
26
  - tests/unit/data/travis/sphinx-setup.sh
27
  - mongo yii2test --eval 'db.addUser("travis", "test");'
Carsten Brandt committed
28

29 30
script:
  - phpunit --coverage-text --coverage-clover tests/unit/runtime/coveralls/clover.xml --verbose --exclude-group mssql,oci,wincache,xcache,zenddata,vendor
31

32 33
#after_script:
#  - php vendor/bin/coveralls