| @@ 16-26 (lines=11) @@ | ||
| 13 | /** |
|
| 14 | * {@inheritdoc} |
|
| 15 | */ |
|
| 16 | protected function configure() |
|
| 17 | { |
|
| 18 | $this->setName('clean'); |
|
| 19 | $this->setDescription('Clean images, containers and/or directories of previous build for this project'); |
|
| 20 | $this->addOption('project-path', 'p', InputOption::VALUE_OPTIONAL, "Path where you project is (default to current directory)", "."); |
|
| 21 | $this->addOption('keep', 'k', InputOption::VALUE_OPTIONAL, "Number of images / containers / directories per build to keep", 1); |
|
| 22 | $this->addOption('only-containers', null, InputOption::VALUE_NONE, "Only clean containers (no images or directories)"); |
|
| 23 | $this->addOption('only-directories', null, InputOption::VALUE_NONE, "Only clean directories (no images or containers)"); |
|
| 24 | $this->addOption('only-images', null, InputOption::VALUE_NONE, "Only clean images (no containers or directories), be aware that this may fail if containers are still attached to images (you may need to use force option)"); |
|
| 25 | $this->addOption('force', null, InputOption::VALUE_NONE, "Force removal for images"); |
|
| 26 | } |
|
| 27 | ||
| 28 | /** |
|
| 29 | * {@inheritdoc} |
|
| @@ 27-37 (lines=11) @@ | ||
| 24 | /** |
|
| 25 | * {@inheritdoc} |
|
| 26 | */ |
|
| 27 | protected function configure() |
|
| 28 | { |
|
| 29 | $this->setName('run'); |
|
| 30 | $this->setDescription('Run tests on your project'); |
|
| 31 | $this->addOption('project-path', 'p', InputOption::VALUE_OPTIONAL, "Path where you project is (default to current directory)", "."); |
|
| 32 | $this->addOption('keep', 'k', InputOption::VALUE_OPTIONAL, "Number of images / containers / directories per build to keep when cleaning at the end of run", 1); |
|
| 33 | $this->addOption('no-cache', null, InputOption::VALUE_NONE, "Do not use cache of docker"); |
|
| 34 | $this->addOption('timeout', null, InputOption::VALUE_OPTIONAL, "Timeout for docker client in seconds (default to 5 minutes)", "300"); |
|
| 35 | $this->addOption('notify', null, InputOption::VALUE_NONE, "Show desktop notifications when a build is finished"); |
|
| 36 | $this->addArgument('cmd', InputArgument::OPTIONAL, "Override test command"); |
|
| 37 | } |
|
| 38 | ||
| 39 | /** |
|
| 40 | * {@inheritdoc} |
|