-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (37 loc) · 1.78 KB
/
.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
30
31
32
33
34
35
36
37
38
39
40
41
42
language: php
php:
- 5.4
- 5.5
before_script:
- echo '' > ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini
- ulimit -n 10000
- sudo apt-get update
- sudo apt-get install -y --force-yes apache2 libapache2-mod-php5 php5-curl
- sudo sed -i -e "s,/var/www,$(pwd)/web,g" /etc/apache2/sites-available/default
- export MINK_EXTENSION_PARAMS='base_url=http://localhost:8000/app_test.php'
- sudo /etc/init.d/apache2 restart
- composer install --prefer-source --no-interaction
- wget http://getcomposer.org/composer.phar
- app/console doctrine:database:create --env=test > /dev/null
- app/console doctrine:schema:create --env=test > /dev/null
- app/console cache:warmup --env=test > /dev/null
- sh -e /etc/init.d/xvfb start
- export DISPLAY=:99
- wget http://selenium.googlecode.com/files/selenium-server-standalone-2.35.0.jar
- java -jar selenium-server-standalone-2.35.0.jar > /dev/null &
- sleep 5
- sudo chmod -R 777 app/cache app/logs
- cp app/config/parameters.yml.dist app/config/parameters.yml
- cp phpspec.yml.dist phpspec.yml
script:
- php -d memory_limit=2048M bin/behat --no-snippets --no-paths --verbose --tags '@homepage && ~@javascript'
- cd src/Asbo/Bundle/ContactBundle; ../../../../bin/phpspec run -fpretty --verbose
- cd ../CoreBundle; ../../../../bin/phpspec run -fpretty --verbose
- cd ../EventBundle; ../../../../bin/phpspec run -fpretty --verbose
- cd ../QuizzBundle; ../../../../bin/phpspec run -fpretty --verbose
- cd ../WhosWhoBundle; ../../../../bin/phpspec run -fpretty --verbose
notifications:
email: "[email protected]"
after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage