.travis.yml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. sudo: false
  2. language: php
  3. php:
  4. - 5.4
  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 [ '$TEST_DAV' != '1' ]; then echo \"Not testing DAV\"; fi"
  28. - sh -c "if [ '$TEST_DAV' = '1' ]; then echo \"Testing DAV\"; fi"
  29. - sh -c "if [ '$TEST_DAV' = '1' ]; then bash apps/dav/tests/travis/$TC/script.sh; fi"
  30. matrix:
  31. include:
  32. - php: 5.4
  33. env: DB=pgsql;TC=litmus-v1
  34. - php: 5.4
  35. env: DB=sqlite;TC=carddav
  36. - php: 5.4
  37. env: DB=sqlite;TC=caldav
  38. - php: 5.4
  39. env: DB=sqlite;TC=syntax;TEST_DAV=0
  40. - php: 5.5
  41. env: DB=sqlite;TC=syntax;TEST_DAV=0
  42. - php: 5.6
  43. env: DB=sqlite;TC=syntax;TEST_DAV=0
  44. - php: 7.0
  45. env: DB=sqlite;TC=syntax;TEST_DAV=0
  46. - php: 5.4
  47. env: DB=sqlite;TC=app:check-code;TEST_DAV=0
  48. fast_finish: true