Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

Commit 0f471b5

Browse files
committed
Set up tests for 6.0 branch
1 parent 44e2100 commit 0f471b5

3 files changed

Lines changed: 48 additions & 0 deletions

File tree

.travis.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
language: php
2+
3+
php:
4+
- 5.6
5+
- 7.0
6+
- 7.1
7+
8+
before_script:
9+
- composer global require consolidation/robo
10+
- robo prepare
11+
- composer update
12+
13+
script:
14+
- robo test cli
15+
- robo test unit -g core

RoboFile.php

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
/**
3+
* This is project's console commands configuration for Robo task runner.
4+
*
5+
* @see http://robo.li/
6+
*/
7+
class RoboFile extends \Robo\Tasks
8+
{
9+
// define public methods as commands
10+
public function prepare()
11+
{
12+
$config = json_decode(file_get_contents(__DIR__ . '/composer.json'));
13+
14+
$config['name'] = 'codeception/phpunit-wrapper-test';
15+
$config['require-dev']['codeception/codeception'] = '*';
16+
$config['replace'] = ['codeception/phpunit-wrapper' => '*'];
17+
18+
file_put_contents(__DIR__ . '/composer.json', json_decode($config));
19+
}
20+
21+
public function test($params)
22+
{
23+
return $this->_exec('./vendor/bin/codecept run -c vendor/codeception/codeception ' . $params);
24+
}
25+
}

composer.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,23 @@
99
"email": "davert.php@resend.cc"
1010
}
1111
],
12+
"replace": {
13+
"codeception/phpunit-wrapper": "*"
14+
},
1215
"require": {
1316
"phpunit/phpunit": ">=4.8.28 <5.0.0 || >=5.6.3 <7.0",
1417
"phpunit/php-code-coverage": ">=2.2.4 <6.0",
1518
"sebastian/comparator": ">1.1 <3.0",
1619
"sebastian/diff": ">=1.4 <4.0"
20+
1721
},
1822
"autoload":{
1923
"psr-4":{
2024
"Codeception\\PHPUnit\\": "src\\"
2125
}
26+
},
27+
"require-dev": {
28+
"vlucas/phpdotenv": "^2.4",
29+
"codeception/specify": "^1.0"
2230
}
2331
}

0 commit comments

Comments
 (0)