Skip to content

Commit 51ef456

Browse files
authored
Merge pull request #17 from Cheppers/behat-post-rewrite
Add Behat tests for post-rewrite hook
2 parents fa77f26 + 69a22de commit 51ef456

File tree

7 files changed

+222
-167
lines changed

7 files changed

+222
-167
lines changed

.travis.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11

2-
sudo: false
32
cache:
43
directories:
54
- 'vendor'
@@ -9,22 +8,13 @@ matrix:
98
fast_finish: true
109
include:
1110
-
11+
sudo: required
1212
os: 'linux'
13-
language: 'php'
14-
php: '5.6'
15-
env:
16-
- COMPOSER_NO_INTERACTION=1 COMPOSER_DISABLE_XDEBUG_WARN=1
17-
-
18-
os: 'linux'
13+
dist: trusty
1914
language: 'php'
2015
php: '7.0'
2116
env:
2217
- COMPOSER_NO_INTERACTION=1 COMPOSER_DISABLE_XDEBUG_WARN=1
23-
-
24-
os: 'osx'
25-
language: 'generic'
26-
env:
27-
- _PHP=php56 COMPOSER_NO_INTERACTION=1 COMPOSER_DISABLE_XDEBUG_WARN=1
2818
-
2919
os: 'osx'
3020
language: 'generic'

RoboFile.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class RoboFile extends Tasks
4949
'post-commit' => ['base_mask' => 0777],
5050
'post-merge' => ['base_mask' => 0777],
5151
'post-receive' => ['base_mask' => 0666],
52-
'post-rewrite' => ['base_mask' => 0666],
52+
'post-rewrite' => ['base_mask' => 0777],
5353
'post-update' => ['base_mask' => 0777],
5454
'pre-applypatch' => ['base_mask' => 0777],
5555
'pre-auto-gc' => ['base_mask' => 0777],
@@ -89,6 +89,8 @@ public function releaseCreate($version)
8989
throw new \Exception('Invalid version number', 1);
9090
}
9191

92+
$this->stopOnFail();
93+
9294
/** @var \Robo\Collection\Collection $collection */
9395
$collection = $this->collection();
9496

@@ -137,6 +139,8 @@ public function deployGitHooks()
137139

138140
public function test()
139141
{
142+
$this->stopOnFail();
143+
140144
/** @var \Robo\Collection\Collection $c */
141145
$c = $this->collection();
142146
$c
@@ -162,6 +166,8 @@ public function composerValidate()
162166

163167
public function lint()
164168
{
169+
$this->stopOnFail();
170+
165171
/** @var \Robo\Collection\Collection $c */
166172
$c = $this->collection();
167173
$c

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"require": {},
99
"require-dev": {
1010
"behat/behat": "~3.1",
11-
"codegyre/robo": "dev-master#a605efd",
11+
"consolidation/robo": "dev-master#6af485e",
1212
"pear/archive_tar": "~1.4",
1313
"phpunit/phpunit": "~4.5",
1414
"squizlabs/php_codesniffer": "~2.6",

0 commit comments

Comments
 (0)