# see http://about.travis-ci.org/docs/user/languages/php/ for more hints
language: php

sudo: false

# list any PHP version you want to test against
php:
  - 5.4
  - 5.5
  - 5.6

# optionally specify a list of environments, for example to test different RDBMS
env:
  - SPOT_DB=mysql
  - SPOT_DB=pgsql
  - SPOT_DB=sqlite

# execute any number of scripts before the test run, custom env's are available as variables
before_script:
  - composer install
  - if [[ "$SPOT_DB" == "mysql" ]]; then mysql -e "create database IF NOT EXISTS spot_test;" -uroot; fi
  - if [[ "$SPOT_DB" == "pgsql" ]]; then psql -c 'create database spot_test;' -U postgres; fi

# omitting "script:" will default to phpunit
# use the $SPOT_DB env variable to determine the phpunit.xml to use
script: phpunit --configuration phpunit_$SPOT_DB.xml --coverage-text

# configure notifications (email, IRC, campfire etc)
#notifications:
#  irc: "irc.freenode.org#travis"

# see http://about.travis-ci.org/docs/user/languages/php/ for more hints
language: php

sudo: false

# list any PHP version you want to test against
php:
  - 5.4
  - 5.5
  - 5.6

# optionally specify a list of environments, for example to test different RDBMS
env:
  - SPOT_DB=mysql
  - SPOT_DB=pgsql
  - SPOT_DB=sqlite

install:
  - composer install

# execute any number of scripts before the test run, custom env's are available as variables
before_script:
  - if [[ "$SPOT_DB" == "mysql" ]]; then mysql -e "create database IF NOT EXISTS spot_test;" -uroot; fi
  - if [[ "$SPOT_DB" == "pgsql" ]]; then psql -c 'create database spot_test;' -U postgres; fi

# omitting "script:" will default to phpunit
# use the $SPOT_DB env variable to determine the phpunit.xml to use
script: phpunit --configuration phpunit_$SPOT_DB.xml --coverage-text

# configure notifications (email, IRC, campfire etc)
#notifications:
#  irc: "irc.freenode.org#travis"

Install dependencies in install section
Fix: Install dependencies in install section
