Skip to content

Instantly share code, notes, and snippets.

@icqparty
Last active August 29, 2015 14:08
Show Gist options
  • Save icqparty/21c6ef1e581e097232e9 to your computer and use it in GitHub Desktop.
Save icqparty/21c6ef1e581e097232e9 to your computer and use it in GitHub Desktop.
language: php
php:
- 5.5
env:
- APPLICATION_ENV=develope DB_NAME=sendlead
services:
- mongodb
mysql:
adapter: mysql2
database: $DB_NAME
username: travis
encoding: utf8
cache:
directories:
- vendor
before_cache:
- composer self-update
- composer install
before_script:
- mysql -e "create database IF NOT EXISTS $DB_NAME;" -uroot
- mysql $DB_NAME < $DB_NAME.sql -uroot
- mysql -e "USE $DB_NAME; SHOW TABLES;" -uroot
script: phpunit --coverage-text
notifications:
on_success: never
on_failure: always
hipchat: <TOKEN>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment