Copy of Nextcloud richdocuments app, but with modifications so all traffic goes over clearnet/CJDNS/Tor/I2P/whatever instead of having a single default hostname.
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.

.travis.yml 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. language: php
  2. php:
  3. - 7
  4. env:
  5. global:
  6. - CORE_BRANCH=master
  7. - APP_NAME=richdocuments
  8. matrix:
  9. - DB=sqlite
  10. branches:
  11. only:
  12. - master
  13. - /^stable\d+(\.\d+)?$/
  14. sudo: true
  15. before_install:
  16. - wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
  17. - . ./before_install.sh $APP_NAME $CORE_BRANCH $DB
  18. # Add some output debugging information
  19. - cd ../server
  20. - ./occ check
  21. - ./occ status
  22. - ./occ app:list
  23. script:
  24. - cd apps/$APP_NAME/
  25. # Test the app
  26. - sh -c "if [ '$JSTESTS' != '1' -a '$CODECHECK' = '1' ]; then find . -name \*.php -exec php -l \"{}\" \;; fi"
  27. - cd ../../
  28. - sh -c "if [ '$JSTESTS' != '1' -a '$CODECHECK' = '1' ]; then ./occ app:check-code $APP_NAME -c private -c strong-comparison; fi"
  29. - sh -c "if [ '$JSTESTS' != '1' -a '$CODECHECK' = '2' ]; then ./occ app:check-code $APP_NAME -c deprecation; fi"
  30. - cd apps/$APP_NAME/
  31. # Run phpunit tests
  32. - cd tests/
  33. - sh -c "if [ '$JSTESTS' != '1' -a '$CODECHECK' != '1' -a '$CODECHECK' != '2' ]; then phpunit --configuration phpunit.xml; fi"
  34. # Create coverage report
  35. - sh -c "if [ '$JSTESTS' != '1' -a '$CODECHECK' != '1' -a '$CODECHECK' != '2' ]; then wget https://scrutinizer-ci.com/ocular.phar; fi"
  36. - sh -c "if [ '$JSTESTS' != '1' -a '$CODECHECK' != '1' -a '$CODECHECK' != '2' ]; then php ocular.phar code-coverage:upload --format=php-clover clover.xml; fi"
  37. - cd ../
  38. matrix:
  39. matrix:
  40. include:
  41. - php: 7
  42. env: "DB=sqlite CORE_BRANCH=stable12"
  43. - php: 7
  44. env: "DB=sqlite CORE_BRANCH=stable13"
  45. - php: 7
  46. env: DB=mysql
  47. - php: 7
  48. env: DB=pgsql
  49. - php: 7
  50. env: DB=mysql;CODECHECK=1
  51. - php: 7
  52. env: DB=mysql;CODECHECK=2
  53. - php: 7
  54. env: DB=mysql;JSTESTS=1
  55. allow_failures:
  56. - env: DB=mysql;CODECHECK=1
  57. fast_finish: true