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

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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; 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