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

github.com/nextcloud/password_policy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2016-06-27 14:48:07 +0300
committerLukas Reschke <lukas@owncloud.com>2016-06-27 14:48:07 +0300
commitfded32eb24dabcce1b507e0328cd082d85e1bbcb (patch)
tree79c8a92a67f6c33136f34057355c9722e2d20a78 /.travis.yml
parentab949c7f41b579c70308dd6a714c780fdcee9de8 (diff)
Add travis and scrutinizer
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml44
1 files changed, 44 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..02dfc81
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,44 @@
+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 password_policy $CORE_BRANCH $DB
+
+script:
+ # Test lint
+ - cd ../core/apps/password_policy
+ - find . -name \*.php -exec php -l "{}" \;
+
+ # Run phpunit tests
+ - cd tests
+ - phpunit --configuration phpunit.xml
+
+ # Create coverage report
+ - sh -c "if [ '$TRAVIS_PHP_VERSION' != 'hhvm' ]; then wget https://scrutinizer-ci.com/ocular.phar; fi"
+ - sh -c "if [ '$TRAVIS_PHP_VERSION' != 'hhvm' ]; then php ocular.phar code-coverage:upload --format=php-clover clover.xml; fi"
+
+matrix:
+ include:
+ - php: 5.4
+ env: DB=mysql
+ - php: 5.4
+ env: DB=pgsql
+ fast_finish: true