Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f821dce

Browse files
committed
fix hooks
1 parent cf2e123 commit f821dce

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

‎git-hooks/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env php
22
<?php
3-
3+
//Run codeception tests and show HTML file with generated test results
44
$projectName = basename(getcwd());
55

66
exec('vendor\bin\codecept run --no-colors -n --html', $output, $returnCode);

‎git-hooks/pre-push

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
#!/usr/bin/env php
22
<?php
3-
3+
//Run codeception tests and abort on fail
44
$projectName = basename(getcwd());
55

6-
exec('vendor\bin\codecept run -q -n', $output, $returnCode);
6+
exec('vendor\bin\codecept run -n -q -f', $output, $returnCode);
77

88
if ($returnCode !== 0) {
9-
printf("ABORTING Push!\n");
109
exit(1);
1110
}
12-
1311
exit(0);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /