Last active
June 9, 2016 09:18
-
-
Save RomainMarecat/1a2b6badf99090499af292508c097a74 to your computer and use it in GitHub Desktop.
Simple travis testing configuration for Symfony 2 API
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | |
- [email protected] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parameters: | |
database_user: travis | |
database_password: ~ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment