diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2016-07-25 16:43:16 +0300 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2016-07-26 11:25:48 +0300 |
commit | 6af383023e3ff228e60f9eba125a9125beab8ac4 (patch) | |
tree | c63a7a2cf537738a3d2e1be619b37922f86954de /.travis.yml | |
parent | b83feb415fbe363d727f70b1dda3b35d7a281973 (diff) |
add unit testsmonitoring-api2
Diffstat (limited to '.travis.yml')
-rw-r--r-- | .travis.yml | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..dbc0730 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,45 @@ +language: php + +php: + - 5.4 + - 5.5 + - 5.6 + - 7 + +env: + global: + - CORE_BRANCH=master + matrix: + - DB=sqlite + +branches: + only: + - master + - /^stable\d+(\.\d+)?$/ + +sudo: true +before_install: + - wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh + - bash ./before_install.sh serverinfo $CORE_BRANCH $DB + +script: + # Test lint + - cd ../server + - cd apps/serverinfo + - find . -name \*.php -exec php -l "{}" \; + + # Run phpunit tests + - cd tests + - phpunit --configuration phpunit.xml + + # Create coverage report + - wget https://scrutinizer-ci.com/ocular.phar + - php ocular.phar code-coverage:upload --format=php-clover clover.xml + +matrix: + include: + - php: 5.4 + env: DB=mysql + - php: 5.4 + env: DB=pgsql + fast_finish: true |