language: php
sudo: true
php:
  - 5.6

services:
  - mysql

before_install:
  - composer self-update

install:
  - composer install

before_script:
  - cp app/config/parameters.yml.dist app/config/parameters_test.yml
  - cp behat.yml.dist behat.yml
  - php bin/console server:start
  - php bin/console doctrine:database:create --env=test
  - php bin/console doctrine:schema:create --env=test
  - php bin/console doctrine:fixtures:load -n --env=test
  - vendor/bin/phpcs --config-set installed_paths vendor/escapestudios/symfony2-coding-standard
  
script:
  - vendor/bin/behat features/browser.feature
  - vendor/bin/phpcs --standard=Symfony2 -n src
  - vendor/bin/phpunit tests/ClientBundle --coverage-clover=coverage.xml
  
after_script:
  - php bin/console server:stop

after_success:
  - bash <(curl -s https://codecov.io/bash)

language: php
sudo: true
php:
  - 5.6

services:
  - mysql

before_install:
  - composer self-update

install:
  - composer install

before_script:
  - cp app/config/parameters.yml.dist app/config/parameters_test.yml
  - cp behat.yml.dist behat.yml
  - php bin/console server:start
  - php bin/console doctrine:database:create --env=test
  - php bin/console doctrine:schema:create --env=test
  - vendor/bin/phpcs --config-set installed_paths vendor/escapestudios/symfony2-coding-standard
  
script:
  - vendor/bin/phpcs --standard=Symfony2 -n src
  - vendor/bin/phpunit tests/ClientBundle --coverage-clover=coverage.xml
  - vendor/bin/behat features/browser.feature
  
after_script:
  - php bin/console server:stop

after_success:
  - bash <(curl -s https://codecov.io/bash)

Edit delete dotrine:fixtures:load row and replace script rows
Edit delete dotrine:fixtures:load row and replace script rows
