You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.1 KiB

3 years ago
  1. sudo: false
  2. language: php
  3. php:
  4. - 7.2
  5. env:
  6. global:
  7. - DB=sqlite
  8. matrix:
  9. - CORE_BRANCH=stable19 REPO=nextcloud/server
  10. matrix:
  11. fast_finish: true
  12. before_install:
  13. - wget https://phar.phpunit.de/phpunit-5.7.phar
  14. - chmod +x phpunit-5.7.phar
  15. - mkdir bin
  16. - mv phpunit-5.7.phar bin/phpunit
  17. - phpunit --version
  18. - cd ../
  19. - git clone https://github.com/$REPO.git --recursive --depth 1 -b $CORE_BRANCH mainrepo
  20. - mv apporder mainrepo/apps/
  21. before_script:
  22. # fill owncloud with default configs and enable apporder
  23. - cd mainrepo
  24. - mkdir data
  25. - ./occ maintenance:install --database-name oc_autotest --database-user oc_autotest --admin-user admin --admin-pass admin --database $DB --database-pass=''
  26. - ./occ app:enable apporder
  27. - ./occ app:check-code apporder
  28. - php -S localhost:8080 &
  29. - cd apps/apporder
  30. - export PATH="$PWD/bin:$PATH"
  31. script:
  32. - make test
  33. after_failure:
  34. - cat ../../data/owncloud.log
  35. after_success:
  36. - wget https://scrutinizer-ci.com/ocular.phar
  37. - php ocular.phar code-coverage:upload --format=php-clover build/php-unit.clover