services:
  acceptance-tests:
    image: owncloudci/php:7.4
    command: /bin/bash /test/run-tests.sh
    environment:
      OCIS_ROOT: /drone/src
      PATH_TO_CORE: /srv/app/testrunner
      SKELETON_DIR: /srv/app/tmp/testing/data/apiSkeleton
      TEST_OCIS: "true"
      RUN_ON_OCIS: "true"
      TEST_SERVER_URL: https://ocis-server:9200
      TESTING_DIR: /srv/app/tmp/testing

      STORAGE_DRIVER: $STORAGE_DRIVER
      TEST_SOURCE: $TEST_SOURCE
      BEHAT_SUITE: ${BEHAT_SUITE:-}
      BEHAT_FEATURE: ${BEHAT_FEATURE:-}
      DIVIDE_INTO_NUM_PARTS: $DIVIDE_INTO_NUM_PARTS
      RUN_PART: $RUN_PART
    env_file:
      - ../../../../.drone.env
    volumes:
      - ./run-tests.sh:/test/run-tests.sh
      - oCISownCloud10testsuite:/srv
      - ../../../../:/drone/src
      - ../../../../vendor-bin/behat/composer.json:/tmp/vendor-bin/behat/composer.json
      - oCISownCloud10testsuite-vendor:/drone/src/vendor

volumes:
  oCISownCloud10testsuite:
  oCISownCloud10testsuite-vendor:
