.travis.yml 961 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 [ '$TEST_DAV' != '1' ]; then echo \"Not testing DAV\"; fi"
  26. - sh -c "if [ '$TEST_DAV' = '1' ]; then echo \"Testing DAV\"; fi"
  27. - sh -c "if [ '$TEST_DAV' = '1' ]; then bash apps/dav/tests/travis/$TC/script.sh; fi"
  28. matrix:
  29. include:
  30. - php: 5.4
  31. env: DB=pgsql;TC=litmus-v1
  32. - php: 5.4
  33. env: DB=sqlite;TC=carddav
  34. - php: 5.4
  35. env: DB=sqlite;TC=caldav
  36. fast_finish: true