Skip to content

Instantly share code, notes, and snippets.

@LukasReschke
Last active August 29, 2015 14:03
Show Gist options
  • Save LukasReschke/096658380fe3a9815aa7 to your computer and use it in GitHub Desktop.
Save LukasReschke/096658380fe3a9815aa7 to your computer and use it in GitHub Desktop.
language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
env:
global:
- CORE_BRANCH=master
- CI_HOME=`pwd`
matrix:
- DB=sqlite
- DB=mysql
- DB=pgsql
- DB=oracle
before_install:
- wget https://raw.githubusercontent.com/owncloud/administration/master/travis-ci/before_install.sh
- bash ./before_install.sh YourAppName $CORE_BRANCH $DB
script:
# execute unit tests
- cd ../core/apps/YourAppName/tests; phpunit --configuration phpunit.xml
# push code coverage to scrutinizer-ci
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover clover.xml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment