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

github.com/juliushaertl/apporder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulius Haertl <jus@bitgrid.net>2016-05-25 19:43:00 +0300
committerJulius Haertl <jus@bitgrid.net>2016-05-25 20:18:20 +0300
commitd2925639b50999a72d74bbc16ce870e9c23dde76 (patch)
tree8eb48eda1ff1b4f5cef63537d461f71356c2b8ee /.travis.yml
parent6d97271b944177dbe332abfd5757a4827071bc21 (diff)
Add travis.yml
Diffstat (limited to '.travis.yml')
-rw-r--r--.travis.yml40
1 files changed, 40 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000..6ce4154
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,40 @@
+sudo: false
+language: php
+php:
+ - 5.6
+ - 7
+env:
+ global:
+ - DB=sqlite
+ matrix:
+ - CORE_BRANCH=master
+ - CORE_BRANCH=stable9
+
+matrix:
+ fast_finish: true
+
+before_install:
+ # install core
+ - cd ../
+ - git clone https://github.com/owncloud/core.git --recursive --depth 1 -b $CORE_BRANCH owncloud
+ - mv apporder owncloud/apps/
+
+before_script:
+ # fill owncloud with default configs and enable apporder
+ - cd owncloud
+ - mkdir data
+ - ./occ maintenance:install --database-name oc_autotest --database-user oc_autotest --admin-user admin --admin-pass admin --database $DB --database-pass=''
+ - ./occ app:enable apporder
+ - ./occ app:check-code apporder
+ - php -S localhost:8080 &
+ - cd apps/apporder
+
+script:
+ - make test
+
+after_failure:
+ - cat ../../data/owncloud.log
+
+after_success:
+ - wget https://scrutinizer-ci.com/ocular.phar
+ - php ocular.phar code-coverage:upload --format=php-clover build/php-unit.clover