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.

139 lines
3.3KB

  1. kind: pipeline
  2. name: compatibility
  3. steps:
  4. - name: syntax-php7.1
  5. image: nextcloudci/php7.1:php7.1-16
  6. environment:
  7. APP_NAME: data_request
  8. CORE_BRANCH: master
  9. DATABASEHOST: sqlite
  10. commands:
  11. - wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
  12. - bash ./before_install.sh $APP_NAME $CORE_BRANCH $DATABASEHOST
  13. - cd ../server
  14. - composer install
  15. - ./lib/composer/bin/parallel-lint apps/$APP_NAME/
  16. - name: syntax-php7.3
  17. image: nextcloudci/php7.3:php7.3-1
  18. environment:
  19. APP_NAME: data_request
  20. CORE_BRANCH: master
  21. DATABASEHOST: sqlite
  22. commands:
  23. - wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
  24. - bash ./before_install.sh $APP_NAME $CORE_BRANCH $DATABASEHOST
  25. - cd ../server
  26. - composer install
  27. - ./lib/composer/bin/parallel-lint apps/$APP_NAME/
  28. - name: app-code-check
  29. image: nextcloudci/php7.3:php7.3-1
  30. environment:
  31. APP_NAME: data_request
  32. CORE_BRANCH: master
  33. DATABASEHOST: sqlite
  34. commands:
  35. - wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
  36. - bash ./before_install.sh $APP_NAME $CORE_BRANCH $DATABASEHOST
  37. - cd ../server
  38. - ./occ app:check-code $APP_NAME
  39. - cd apps/$APP_NAME/
  40. trigger:
  41. branch:
  42. - master
  43. - stable*
  44. event:
  45. - pull_request
  46. - push
  47. ---
  48. kind: pipeline
  49. name: unit-sqlite-php7.1
  50. steps:
  51. - name: sqlite-php7.1
  52. image: nextcloudci/php7.1:php7.1-16
  53. environment:
  54. APP_NAME: data_request
  55. CORE_BRANCH: master
  56. DATABASEHOST: sqlite
  57. commands:
  58. - wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
  59. - bash ./before_install.sh $APP_NAME $CORE_BRANCH $DATABASEHOST
  60. - cd ../server
  61. - ./occ app:enable $APP_NAME
  62. - cd apps/$APP_NAME
  63. # Run phpunit tests
  64. - cd tests/unit/
  65. - phpunit --configuration phpunit.xml
  66. trigger:
  67. branch:
  68. - master
  69. - stable*
  70. event:
  71. - pull_request
  72. - push
  73. ---
  74. kind: pipeline
  75. name: unit-sqlite-php7.2
  76. steps:
  77. - name: sqlite-php7.2
  78. image: nextcloudci/php7.2:php7.2-12
  79. environment:
  80. APP_NAME: data_request
  81. CORE_BRANCH: master
  82. DATABASEHOST: sqlite
  83. commands:
  84. - wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
  85. - bash ./before_install.sh $APP_NAME $CORE_BRANCH $DATABASEHOST
  86. - cd ../server
  87. - ./occ app:enable $APP_NAME
  88. - cd apps/$APP_NAME
  89. # Run phpunit tests
  90. - cd tests/unit/
  91. - phpunit --configuration phpunit.xml
  92. trigger:
  93. branch:
  94. - master
  95. - stable*
  96. event:
  97. - pull_request
  98. - push
  99. ---
  100. kind: pipeline
  101. name: unit-sqlite-php7.3
  102. steps:
  103. - name: sqlite-php7.3
  104. image: nextcloudci/php7.3:php7.3-1
  105. environment:
  106. APP_NAME: data_request
  107. CORE_BRANCH: master
  108. DATABASEHOST: sqlite
  109. commands:
  110. - wget https://raw.githubusercontent.com/nextcloud/travis_ci/master/before_install.sh
  111. - bash ./before_install.sh $APP_NAME $CORE_BRANCH $DATABASEHOST
  112. - cd ../server
  113. - ./occ app:enable $APP_NAME
  114. - cd apps/$APP_NAME
  115. # Run phpunit tests
  116. - cd tests/unit/
  117. - phpunit --configuration phpunit.xml
  118. trigger:
  119. branch:
  120. - master
  121. - stable*
  122. event:
  123. - pull_request
  124. - push