language: php
php:
- '5.4'
- '5.5'
- '5.6'
- '7.0'
sudo: false
cache:
directories:
- $HOME/.composer/cache
install:
- chmod a+x mongodb-setup.sh
- ./mongodb-setup.sh
- composer install
services:
- mysql
- mongodb
addons:
apt:
sources:
- mongodb-3.0-precise
packages:
- mongodb-org-server
- mongodb-org-shell
before_script:
- if [ $TRAVIS_PHP_VERSION = '5.6' ]; then PHPUNIT_FLAGS="--coverage-clover coverage.xml"; else PHPUNIT_FLAGS=""; fi
- mysql -e 'create database notymo_test_db;'
script:
- phpunit --verbose $PHPUNIT_FLAGS;
after_script:
- if [ $TRAVIS_PHP_VERSION = '5.6' ]; then wget https://scrutinizer-ci.com/ocular.phar; php ocular.phar code-coverage:upload --format=php-clover coverage.xml; fi
|