Triggering Nightly Inspections

If you would like to trigger a nightly inspection which runs a more extensive test-suite or analysis than your regular inspections, this can be achieved very easily through Scrutinizer's extensive API.

To set this up all you need to do is to create an access token and to setup a cronjob on your server which creates an inspection through the API.

Tweaking your configuration

Inspections which are triggered through the API can use a different configuration from your regular inspections. If you do not want to duplicate configurations, but just make a few tweaks for your nightly configuration, this can be achieved very easily:

build:
  nodes:
    some-node:
      tests:
        # Override all test commands in the "before" section of your regular configuration.
        before:
          - vendor/bin/phpunit -c tests/nightly/