.travis.yml 1.33 KB
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
16
# core framework:
Carsten Brandt committed
17
#  - composer require satooshi/php-coveralls 0.6.* --dev --prefer-dist
18
  - composer install --prefer-dist
Carsten Brandt committed
19
  - tests/unit/data/travis/mongodb-setup.sh
20 21
  - tests/unit/data/travis/apc-setup.sh
  - tests/unit/data/travis/memcache-setup.sh
22
  - tests/unit/data/travis/cubrid-setup.sh
23 24
# basic application:
  - composer install --dev --prefer-dist -d apps/basic
Carsten Brandt committed
25
  - cd apps/basic && php vendor/bin/codecept build && cd ../..
Carsten Brandt committed
26
  - cd apps && php -S localhost:8080 &
DaSourcerer committed
27

Carsten Brandt committed
28
before_script:
29
  - echo 'elasticsearch version ' && curl http://localhost:9200/
Carsten Brandt committed
30 31
  - mysql -e 'CREATE DATABASE yiitest;';
  - psql -U postgres -c 'CREATE DATABASE yiitest;';
Carsten Brandt committed
32
  - tests/unit/data/travis/sphinx-setup.sh
33
  - mongo yii2test --eval 'db.addUser("travis", "test");'
Carsten Brandt committed
34

35
script:
36 37
#  - vendor/bin/phpunit --coverage-clover tests/unit/runtime/coveralls/clover.xml --verbose --exclude-group mssql,oci,wincache,xcache,zenddata,vendor
  - vendor/bin/phpunit --verbose --exclude-group mssql,oci,wincache,xcache,zenddata,vendor
38
  - cd apps/basic && php vendor/bin/codecept run
39

40 41
#after_script:
#  - php vendor/bin/coveralls