Skip to content

Instantly share code, notes, and snippets.

@RomainMarecat
Last active June 9, 2016 09:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RomainMarecat/1a2b6badf99090499af292508c097a74 to your computer and use it in GitHub Desktop.
Save RomainMarecat/1a2b6badf99090499af292508c097a74 to your computer and use it in GitHub Desktop.
Simple travis testing configuration for Symfony 2 API
language: php
sudo: false
cache:
directories:
- $HOME/.composer/cache/files
matrix:
fast_finish: true
include:
- php: 5.6
- php: 7.0
- php: hhvm
allow_failures:
- php: hhvm
before_install:
- if [[ "$TRAVIS_PHP_VERSION" != "hhvm" ]]; then phpenv config-rm xdebug.ini; fi
- composer self-update
- cp app/config/parameters.yml.travis app/config/parameters.yml
install:
- composer install
before_script:
- php app/console doctrine:database:create --env=test
- php app/console doctrine:schema:create --env=test
script:
- phpunit -c app
notifications:
email:
- your.email@email.com
parameters:
database_user: travis
database_password: ~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment