.travis.yml 1.43 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
25
  - cd apps/basic && composer require --dev codeception/codeception:1.8.*@dev codeception/specify:* codeception/verify:*
26
  - php vendor/bin/codecept build && cd ../..
Carsten Brandt committed
27
  - cd apps && php -S localhost:8080 &
DaSourcerer committed
28

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

36
script:
37 38
#  - 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
39
  - cd apps/basic && php vendor/bin/codecept run
40

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