Skip to content

Instantly share code, notes, and snippets.

@reynaldm
Created March 28, 2014 14:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reynaldm/9834040 to your computer and use it in GitHub Desktop.
Save reynaldm/9834040 to your computer and use it in GitHub Desktop.
Travis basic but complete configuration file
{
"config":{
"github-oauth":{
"github.com":"my_project_composer_token"
}
}
}
language: php
php:
- 5.5
before_script:
- cp app/config/parameters.yml.travis app/config/parameters.yml
- cp .travis-composer-config.json ~/.composer/config.json
- composer install --no-progress --prefer-dist
- php app/console doctrine:database:create --env=test
- php app/console doctrine:schema:create --env=test
- php app/console doctrine:fixtures:load -n --env=test
script: phpunit -c app
notifications:
email:
- myprojectname-dev@example.org
parameters:
database_user: travis
database_password: ~
# Other parameters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment