Avoid polluting the git history with CodeCeption config.
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,5 +3,6 @@ TODO
|
|||||||
composer.phar
|
composer.phar
|
||||||
vendor
|
vendor
|
||||||
tests/_output/*
|
tests/_output/*
|
||||||
|
tests/acceptance.suite.yml
|
||||||
node_modules
|
node_modules
|
||||||
.env
|
.env
|
||||||
|
16
RoboFile.php
16
RoboFile.php
@@ -14,7 +14,12 @@ class RoboFile extends \Robo\Tasks {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function watch() {
|
function watch() {
|
||||||
$this->_exec('./node_modules/stylus/bin/stylus -u nib -w assets/css/src/admin.styl -o assets/css/');
|
$command = array(
|
||||||
|
'./node_modules/stylus/bin/stylus -u',
|
||||||
|
'nib -w assets/css/src/admin.styl',
|
||||||
|
'-o assets/css/'
|
||||||
|
);
|
||||||
|
$this->_exec(join(' ', $command));
|
||||||
}
|
}
|
||||||
|
|
||||||
function testUnit() {
|
function testUnit() {
|
||||||
@@ -44,7 +49,14 @@ class RoboFile extends \Robo\Tasks {
|
|||||||
function loadEnv() {
|
function loadEnv() {
|
||||||
$dotenv = new Dotenv\Dotenv(__DIR__);
|
$dotenv = new Dotenv\Dotenv(__DIR__);
|
||||||
$dotenv->load();
|
$dotenv->load();
|
||||||
$this->taskReplaceInFile('tests/acceptance.suite.yml')
|
|
||||||
|
$this
|
||||||
|
->taskWriteToFile('tests/acceptance.suite.yml')
|
||||||
|
->textFromFile('tests/acceptance.suite.src')
|
||||||
|
->run();
|
||||||
|
|
||||||
|
$this
|
||||||
|
->taskReplaceInFile('tests/acceptance.suite.yml')
|
||||||
->regex("/url.*/")
|
->regex("/url.*/")
|
||||||
->to('url: ' . "'" . getenv('WP_TEST_URL'). "'")
|
->to('url: ' . "'" . getenv('WP_TEST_URL'). "'")
|
||||||
->run();
|
->run();
|
||||||
|
Reference in New Issue
Block a user