Skip to content

Commit

Permalink
Moving CI tasks.
Browse files Browse the repository at this point in the history
  • Loading branch information
grasmash committed Apr 10, 2017
1 parent d2da7d2 commit a229e69
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 40 deletions.
6 changes: 0 additions & 6 deletions phing/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,9 @@
<!-- Contains BLT tasks. -->
<import file="${phing.dir}/tasks/blt.xml"/>

<!-- Contains Continuous Integration tasks. -->
<import file="${phing.dir}/tasks/ci.xml"/>

<!-- Contains tasks relevant to validation. E.g., code metrics. -->
<import file="${phing.dir}/tasks/validate.xml"/>

<!-- Contains targets relevant to the execution of tests. E.g., Behat, jMeter. -->
<import file="${phing.dir}/tasks/tests.xml"/>

<!-- Contains targets used for setting up environment. E.g., installing Drupal. -->
<import file="${phing.dir}/tasks/setup.xml"/>

Expand Down
34 changes: 0 additions & 34 deletions phing/tasks/ci.xml

This file was deleted.

39 changes: 39 additions & 0 deletions src/Robo/Commands/Ci/CiCommand.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<?php

namespace Acquia\Blt\Robo\Commands\Vm;

use Acquia\Blt\Robo\BltTasks;
use Robo\Contract\VerbosityThresholdInterface;

/**
* Defines commands in the "setup:settings" namespace.
*/
class CiCommand extends BltTasks {

/**
* Initializes default Acquia Pipelines configuration for this project.
*
* @command ci:pipelines:init
*/
public function pipelinesInit() {
$this->taskFilesystemStack()
->copy($this->getConfigValue('blt.root') . '/scripts/pipelines/acquia-pipelines.yml', $this->getConfigValue('repo.root') . '/acquia-pipelines.yml')
->stopOnFail()
->setVerbosityThreshold(VerbosityThresholdInterface::VERBOSITY_VERBOSE)
->run();
}

/**
* Initializes default Travis CI configuration for this project.
*
* @command ci:travis:init
*/
public function travisInit() {
$this->taskFilesystemStack()
->copy($this->getConfigValue('blt.root') . '/scripts/travis/.travis.yml', $this->getConfigValue('repo.root') . '/.travis.yml')
->stopOnFail()
->setVerbosityThreshold(VerbosityThresholdInterface::VERBOSITY_VERBOSE)
->run();
}

}

0 comments on commit a229e69

Please sign in to comment.