forked from LerochkaKapito/extjs-bundle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
24 lines (20 loc) · 914 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
language: php
php:
- 5.4
services:
- mongodb
before_script:
- echo "extension=mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- curl -s http://getcomposer.org/installer | php
- php composer.phar install --dev
- php Tests/app/console generate:rest:controller -t --controller TestTestBundle:MyCar --entity TestTestBundle:Car
- php Tests/app/console generate:rest:controller -t --controller TestTestBundle:MyCarOwner --entity TestTestBundle:CarOwner
- php Tests/app/console doctrine:database:create
- php Tests/app/console doctrine:schema:create
- php -S 127.0.0.1:8888 -t Tests Tests/app_test.php &
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
script:
- phantomjs --web-security=no Tests/testrunner.js http://127.0.0.1:8888/SpecRunner.html
- php Tests/app/console doctrine:database:drop --force
- phpunit -c phpunit.xml.dist