---
language: php

php:
  - 5.4

notifications:
  email: false
  slack:
    secure: Gxa5PJc/WCjmKcmz6yBhRTe3p26pNkKvag+0LtL3u9CjmaSsnnvP5kHzOWpkYufbmtN7C7pLlwZHusDKXcXigP/zd1guo0lJ7lFfBUezOs1jUkqesmgP2+TPD+VeLoVzQRnZTb8knkEf/EW74zQxVu35flMLGIwZBYFUzZpd5yI=

install:
  - composer selfupdate
  - composer install --no-interaction

before_script:
  - mkdir -p build/logs
  - composer selfupdate
  - composer install
  - mysql -e 'create database `OpenBuildings/shipping`;'
  - mysql OpenBuildings/shipping < tests/test_data/structure.sql

script:
  - phpunit --stderr --coverage-clover build/logs/clover.xml

after_script:
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml

---
language: php

sudo: false

php:
  - 5.4

cache:
  directories:
    - $HOME/.composer/cache

notifications:
  email: false
  slack:
    secure: Gxa5PJc/WCjmKcmz6yBhRTe3p26pNkKvag+0LtL3u9CjmaSsnnvP5kHzOWpkYufbmtN7C7pLlwZHusDKXcXigP/zd1guo0lJ7lFfBUezOs1jUkqesmgP2+TPD+VeLoVzQRnZTb8knkEf/EW74zQxVu35flMLGIwZBYFUzZpd5yI=

install:
  - composer selfupdate
  - composer install --no-interaction

before_script:
  - mkdir -p build/logs
  - composer selfupdate
  - composer install
  - mysql -e 'create database `OpenBuildings/shipping`;'
  - mysql OpenBuildings/shipping < tests/test_data/structure.sql

script:
  - phpunit --stderr --coverage-clover build/logs/clover.xml

after_script:
  - wget https://scrutinizer-ci.com/ocular.phar
  - php ocular.phar code-coverage:upload --format=php-clover build/logs/clover.xml

Use Docker infrastructure for Travis CI
Use Docker infrastructure for Travis CI
