imports:
    - javascript
    - php

filter:
    excluded_paths: [3rdparty/*, js/vendor/*, js/public/app.js, tests/]

tools:
    external_code_coverage:
        timeout: 600    # Timeout in seconds. 10 minutes
        runs: 2         # Scrutinizer waits for the first 2 coverage submissions (unit & integration)

build:
    nodes:
      analysis:
          tests:
              override:
                  - php-scrutinizer-run

imports:
    - javascript
    - php

filter:
    excluded_paths: [3rdparty/*, js/vendor/*, js/public/app.js, tests/]
    dependency_paths:
        - vendor/christophwurst/nextcloud

tools:
    external_code_coverage:
        timeout: 300    # Timeout in seconds, 5 minutes
        runs: 2         # Scrutinizer waits for the first 2 coverage submissions (unit & integration)

build:
    nodes:
        analysis:
            dependencies:
                before:
                    - composer require --dev "christophwurst/nextcloud ^12.0.0"
            tests:
                override:
                    - php-scrutinizer-run

Install core dependencies when Scrutinizer is run
Install core dependencies when Scrutinizer is run

This will make the Scrutinizer results greatly more useful, as we get
rid of the vast amount of false positives on "type not found" which
got reported every time we import some class from the Nextcloud/ownCloud
core.

Also, timeout the wait for code coverage data already after 5 minutes.
This should speed up the process on the private clone of owncloud/music
repository where there is no-one posting the coverage data.
