Skip to content

Commit 33aeddd

Browse files
author
Tasha Harrison
committed
Case 27689; amends to chains and config for new commands
1 parent 8f14e1e commit 33aeddd

File tree

7 files changed

+23
-66
lines changed

7 files changed

+23
-66
lines changed

chain/chain-site-build-ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ commands:
99
name: '%{{name}}'
1010
# Run updates.
1111
- command: site:update
12-
options:
13-
placeholder:
14-
- 'name:%{{name}}'
12+
arguments:
13+
name: '%{{name}}'
1514
# Run tests.
1615
- command: site:test
1716
options:
1817
placeholder:
19-
- 'name:%{{name}}'
18+
- 'name:%{{name}}'
19+
- 'tags:%{{tags|-n}}'

chain/chain-site-build-production.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ command:
44
description: 'Runs updates on Production.'
55
commands:
66
# Run updates.
7-
- command: site:update
8-
options:
9-
placeholder:
10-
- 'name:%{{name}}'
7+
- command: site:update
8+
arguments:
9+
name: '%{{name}}'

chain/chain-site-build-qa.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ commands:
99
name: '%{{name}}'
1010
# Run updates.
1111
- command: site:update
12-
options:
13-
placeholder:
14-
- 'name:%{{name}}'
12+
arguments:
13+
name: '%{{name}}'
1514
# Run tests.
1615
- command: site:test
1716
options:
1817
placeholder:
1918
- 'name:%{{name}}'
19+
- 'tags:%{{tags|-n}}'

chain/chain-site-build-staging.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@ commands:
99
name: '%{{name}}'
1010
# Run updates.
1111
- command: site:update
12-
options:
13-
placeholder:
14-
- 'name:%{{name}}'
12+
arguments:
13+
name: '%{{name}}'

chain/chain-site-test.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,15 @@
1-
# Usage: drupal site:test --placeholder="name:subscriptions" --placeholder="behat_params:--tags=bannerimage"
1+
# Usage: drupal site:test --placeholder="name:subscriptions" --placeholder="tags:--tags=bannerimage"
22
command:
33
name: site:test
44
description: 'Sets the test suites up and then runs them.'
55
commands:
6-
# We must ensure we run this command first in all chains to setup our console environment.
7-
- command: site:base:setup
8-
arguments:
9-
name: '%{{name}}'
106
# Set up testing suites
117
- command: site:test:setup
8+
options:
9+
placeholder:
10+
- 'name:%{{name}}'
11+
# Run Tests
12+
- command: site:test:exec
1213
arguments:
1314
name: '%{{name}}'
14-
# Run Behat
15-
- command: exec
16-
arguments:
17-
bin: 'cd ${{site_destination_directory}}/tests; ./behat %{{behat_params|-n}};'
18-
# Run phpunit
19-
- command: exec
20-
arguments:
21-
bin: 'cd ${{site_destination_directory}}; ./vendor/bin/phpunit;'
15+
tags: '%{{tags|-n}}'

chain/chain-site-update.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

console.config.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ application:
22
autowire:
33
commands:
44
forced:
5-
'site:base:setup':
6-
class: \DennisDigital\Drupal\Console\Command\SiteSetupCommand
75
'site:checkout':
86
class: \DennisDigital\Drupal\Console\Command\SiteCheckoutCommand
97
'site:compose':
@@ -26,4 +24,8 @@ application:
2624
class: \DennisDigital\Drupal\Console\Command\SiteNPMCommand
2725
'site:grunt':
2826
class: \DennisDigital\Drupal\Console\Command\SiteGruntCommand
27+
'site:test:exec':
28+
class: \DennisDigital\Drupal\Console\Command\SiteTestExecCommand
29+
'site:update':
30+
class: \DennisDigital\Drupal\Console\Command\SiteUpdateCommand
2931
name: { }

0 commit comments

Comments
 (0)