.travis.yml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. sudo: false
  2. language: php
  3. php:
  4. - 5.6
  5. env:
  6. global:
  7. - TEST_DAV=$(tests/travis/changed_app.sh dav)
  8. - TC=litmus-v2
  9. matrix:
  10. - DB=sqlite
  11. branches:
  12. only:
  13. - master
  14. - /^stable\d+(\.\d+)?$/
  15. addons:
  16. apt:
  17. packages:
  18. - realpath
  19. before_install:
  20. - sh -c "if [ '$TEST_DAV' = '1' ]; then bash tests/travis/before_install.sh $DB; fi"
  21. install:
  22. - sh -c "if [ '$TEST_DAV' = '1' ]; then bash tests/travis/install.sh $DB; fi"
  23. - sh -c "if [ '$TEST_DAV' = '1' ]; then bash apps/dav/tests/travis/$TC/install.sh; fi"
  24. script:
  25. - sh -c "if [ '$TC' = 'syntax' ]; then composer install && lib/composer/bin/parallel-lint --exclude lib/composer/jakub-onderka/ --exclude 3rdparty/symfony/polyfill-php70/Resources/stubs/ --exclude 3rdparty/patchwork/utf8/src/Patchwork/Utf8/Bootup/ --exclude 3rdparty/paragonie/random_compat/lib/ --exclude lib/composer/composer/autoload_static.php --exclude 3rdparty/composer/autoload_static.php .; fi"
  26. - sh -c "if [ '$TC' = 'app:check-code' ]; then ./occ app:check-code admin_audit; ./occ app:check-code comments; ./occ app:check-code federation; ./occ app:check-code workflowengine; fi"
  27. - sh -c "if [ '$TC' = 'autoloader' ]; then bash build/autoloaderchecker.sh; fi"
  28. - sh -c "if [ '$TEST_DAV' != '1' ]; then echo \"Not testing DAV\"; fi"
  29. - sh -c "if [ '$TEST_DAV' = '1' ]; then echo \"Testing DAV\"; fi"
  30. - sh -c "if [ '$TEST_DAV' = '1' ]; then bash apps/dav/tests/travis/$TC/script.sh; fi"
  31. matrix:
  32. include:
  33. - php: 7.0
  34. env: TC=autoloader;TEST_DAV=0
  35. - php: 5.6
  36. env: DB=pgsql;TC=litmus-v1
  37. - php: 5.6
  38. env: DB=sqlite;TC=carddav
  39. - php: 5.6
  40. env: DB=sqlite;TC=caldav
  41. - php: 5.6
  42. env: DB=sqlite;TC=syntax;TEST_DAV=0
  43. - php: 7.0
  44. env: DB=sqlite;TC=syntax;TEST_DAV=0
  45. - php: 5.6
  46. env: DB=sqlite;TC=app:check-code;TEST_DAV=0
  47. fast_finish: true