.drone.yml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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:php5.6-2
  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:php7.0-2
  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. nodb-php7.1:
  19. image: nextcloudci/php7.1:php7.1-1
  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=NODB ./autotest.sh sqlite
  24. sqlite-php5.6:
  25. image: nextcloudci/php5.6:php5.6-2
  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. sqlite-php7.0:
  31. image: nextcloudci/php7.0:php7.0-2
  32. commands:
  33. - rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues
  34. - git submodule update --init
  35. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
  36. sqlite-php7.1:
  37. image: nextcloudci/php7.1:php7.1-1
  38. commands:
  39. - rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues
  40. - git submodule update --init
  41. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh sqlite
  42. mysql-php5.6:
  43. image: nextcloudci/php5.6:php5.6-2
  44. commands:
  45. - sleep 15 # gives the database enough time to initialize
  46. - rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues
  47. - git submodule update --init
  48. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh mysql
  49. postgres-php5.6:
  50. image: nextcloudci/php5.6:php5.6-2
  51. commands:
  52. - sleep 10 # gives the database enough time to initialize
  53. - rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues
  54. - git submodule update --init
  55. - NOCOVERAGE=true TEST_SELECTION=DB ./autotest.sh pgsql
  56. integration:
  57. image: nextcloudci/php7.0:php7.0-2
  58. commands:
  59. - rm -rf data/* config/config.php # TODO: remove this - temporary fix for CI issues
  60. - git submodule update --init
  61. - ./occ maintenance:install --admin-pass=admin
  62. - cd build/integration
  63. - ./run.sh
  64. compose:
  65. cache:
  66. image: redis
  67. postgres:
  68. image: postgres
  69. environment:
  70. - POSTGRES_USER=oc_autotest
  71. - POSTGRES_PASSWORD=oc_autotest
  72. mysql:
  73. image: mysql
  74. environment:
  75. - MYSQL_ROOT_PASSWORD=owncloud
  76. - MYSQL_USER=oc_autotest
  77. - MYSQL_PASSWORD=owncloud
  78. - MYSQL_DATABASE=oc_autotest