This repository was archived by the owner on Mar 12, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments