forked from LerochkaKapito/extjs-bundle
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
29 lines (25 loc) · 991 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
25
26
27
28
29
language: php
php:
- 5.4
- 5.5
env:
- SYMFONY_VERSION=2.5.*
- SYMFONY_VERSION=2.6.*
- SYMFONY_VERSION=2.7.*
services:
- mongodb
before_script:
- echo "extension=mongo.so" >> ~/.phpenv/versions/$(phpenv version-name)/etc/php.ini
- composer require symfony/symfony:${SYMFONY_VERSION}
- composer 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