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.7KB

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