#!/usr/bin/env php
<?php

$autoload = dirname(__DIR__) . '/vendor/autoload.php';
if (!is_file($autoload)) {
    fwrite(
        STDERR,
        'You must run composer install to setup your dependencies. See https://getcomposer.org/download/ for more information.' . PHP_EOL
    );
    exit(1);
}
require_once $autoload;

$application = new Symfony\Component\Console\Application;

$application->add(new Ibexa\ContiniousIntegrationScripts\Command\LinkDependenciesCommand());
$application->add(new Ibexa\ContiniousIntegrationScripts\Command\RunRegressionCommand());

$application->run();
