Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/serverinfo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2016-07-25 16:43:16 +0300
committerBjoern Schiessle <bjoern@schiessle.org>2016-07-26 11:25:48 +0300
commit6af383023e3ff228e60f9eba125a9125beab8ac4 (patch)
treec63a7a2cf537738a3d2e1be619b37922f86954de /.travis.yml
parentb83feb415fbe363d727f70b1dda3b35d7a281973 (diff)
add unit testsmonitoring-api2
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml45
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