.drone.yml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. build:
  2. jsunit:
  3. image: nextcloudci/jsunit:1.0.6
  4. commands:
  5. - ./autotest-js.sh
  6. nodb-php5.6:
  7. image: nextcloudci/php5.6:1.0.6
  8. commands:
  9. - rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues
  10. - git submodule update --init
  11. - NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
  12. nodb-php7.0:
  13. image: nextcloudci/php7.0:1.0.9
  14. commands:
  15. - rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues
  16. - git submodule update --init
  17. - NOCOVERAGE=true TEST_SELECTION=NODB ./autotest.sh sqlite
  18. sqlite-php5.6:
  19. image: nextcloudci/php5.6:1.0.6
  20. commands:
  21. - rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues
  22. - git submodule update --init
  23. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
  24. sqlite-php7.0:
  25. image: nextcloudci/php7.0:1.0.9
  26. commands:
  27. - rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues
  28. - git submodule update --init
  29. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
  30. mysql-php5.6:
  31. image: nextcloudci/php5.6:1.0.6
  32. commands:
  33. - sleep 15 # gives the database enough time to initialize
  34. - rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues
  35. - git submodule update --init
  36. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql
  37. postgres-php5.6:
  38. image: nextcloudci/php5.6:1.0.6
  39. commands:
  40. - sleep 10 # gives the database enough time to initialize
  41. - rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues
  42. - git submodule update --init
  43. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh pgsql
  44. integration:
  45. image: nextcloudci/php7.0:1.0.9
  46. commands:
  47. - rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues
  48. - git submodule update --init
  49. - ./occ maintenance:install --admin-pass=admin
  50. - cd build/integration
  51. - ./run.sh
  52. compose:
  53. cache:
  54. image: redis
  55. postgres:
  56. image: postgres
  57. environment:
  58. - POSTGRES_USER=oc_autotest
  59. - POSTGRES_PASSWORD=oc_autotest
  60. mysql:
  61. image: mysql
  62. environment:
  63. - MYSQL_ROOT_PASSWORD=owncloud
  64. - MYSQL_USER=oc_autotest
  65. - MYSQL_PASSWORD=owncloud
  66. - MYSQL_DATABASE=oc_autotest