Skip to content

Commit ca81e0f

Browse files
committed
Case 27689; Updated chains
1 parent e9c571c commit ca81e0f

12 files changed

+138
-32
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Usage: drupal site:build:artifact --placeholder="name:subscriptions"
2+
command:
3+
name: site:build:artifact
4+
description: 'Builds artifacts.'
5+
commands:
6+
# Run composer.
7+
- command: site:compose
8+
options:
9+
placeholder:
10+
- 'name:%{{name}}'
11+
# Run NPM.
12+
- command: site:npm
13+
options:
14+
placeholder:
15+
- 'name:%{{name}}'
16+
# Run Grunt.
17+
- command: site:grunt
18+
options:
19+
placeholder:
20+
- 'name:%{{name}}'

chain/chain-site-build-ci.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Usage: drupal site:build:ci --placeholder="name:subscriptions"
2+
command:
3+
name: site:rebuild:ci
4+
description: 'Builds site for CI.'
5+
commands:
6+
# Generate the settings.
7+
- command: site:configure
8+
options:
9+
placeholder:
10+
- 'name:%{{name}}'
11+
# Imports db or installs a site
12+
- command: site:db:import
13+
arguments:
14+
name: '%{{name}}'
15+
# Run updates.
16+
- command: site:update
17+
options:
18+
placeholder:
19+
- 'name:%{{name}}'
20+
# Run tests.
21+
- command: site:test
22+
options:
23+
placeholder:
24+
- 'name:%{{name}}'
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Usage: drupal site:build:prod --placeholder="name:subscriptions"
2+
command:
3+
name: site:rebuild:prod
4+
description: 'Builds site for Production.'
5+
commands:
6+
# Run updates.
7+
- command: site:update
8+
options:
9+
placeholder:
10+
- 'name:%{{name}}'

chain/chain-site-build-qa.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Usage: drupal site:build:qa --placeholder="name:subscriptions"
2+
command:
3+
name: site:rebuild:qa
4+
description: 'Builds site for QA.'
5+
commands:
6+
# Generate the settings.
7+
- command: site:configure
8+
options:
9+
placeholder:
10+
- 'name:%{{name}}'
11+
# Imports db or installs a site
12+
- command: site:db:import
13+
arguments:
14+
name: '%{{name}}'
15+
# Run updates.
16+
- command: site:update
17+
options:
18+
placeholder:
19+
- 'name:%{{name}}'
20+
# Run tests.
21+
- command: site:test
22+
options:
23+
placeholder:
24+
- 'name:%{{name}}'

chain/chain-site-build-staging.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Usage: drupal site:build:staging --placeholder="name:subscriptions"
2+
command:
3+
name: site:rebuild:staging
4+
description: 'Builds site for Staging.'
5+
commands:
6+
# Generate the settings.
7+
- command: site:configure
8+
options:
9+
placeholder:
10+
- 'name:%{{name}}'
11+
# Imports db or installs a site
12+
- command: site:db:import
13+
arguments:
14+
name: '%{{name}}'
15+
# Run updates.
16+
- command: site:update
17+
options:
18+
placeholder:
19+
- 'name:%{{name}}'

chain/chain-site-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Usage: drupal site:build --placeholder="name:subscriptions"
22
command:
33
name: site:build
4-
description: 'Builds a new site.'
4+
description: 'Builds a site.'
55
commands:
66
# Checkout site
77
- command: site:checkout

chain/chain-site-compile.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ commands:
1010
options:
1111
destination-directory: '${{site_destination_directory}}'
1212
# Run npm
13-
- command: exec
13+
- command: site:npm
1414
arguments:
15-
bin: 'cd ${{site_destination_directory}}/web; find . -type d \( -name node_modules -o -name contrib -o -path ./core \) -prune -o -name package.json -execdir sh -c "npm install" \;'
15+
name: '%{{name}}'
1616
# Run grunt
17-
- command: exec
17+
- command: site:grunt
1818
arguments:
19-
bin: 'cd ${{site_destination_directory}}/web; find . -type d \( -name node_modules -o -name contrib -o -path ./core \) -prune -o -name Gruntfile.js -execdir sh -c "grunt" \;'
19+
name: '%{{name}}'

chain/chain-site-rebuild-prod.yml

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

chain/chain-site-rebuild.yml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
11
# Usage: drupal site:rebuild --placeholder="name:subscriptions"
22
command:
33
name: site:rebuild
4-
description: 'Peforms necessary steps to build the site from a given source.'
4+
description: 'Performs necessary steps to rebuild the site from a given source.'
55
commands:
6-
# Compile the packages.
7-
- command: site:compile
6+
# Run composer.
7+
- command: site:compose
8+
options:
9+
placeholder:
10+
- 'name:%{{name}}'
11+
# Run NPM.
12+
- command: site:npm
13+
options:
14+
placeholder:
15+
- 'name:%{{name}}'
16+
# Run Grunt.
17+
- command: site:grunt
818
options:
919
placeholder:
1020
- 'name:%{{name}}'
@@ -13,12 +23,17 @@ commands:
1323
options:
1424
placeholder:
1525
- 'name:%{{name}}'
26+
# Tests setup.
27+
- command: site:test:setup
28+
options:
29+
placeholder:
30+
- 'name:%{{name}}'
1631
# Imports db or installs a site
1732
- command: site:db:import
1833
arguments:
1934
name: '%{{name}}'
20-
# Build the site based on existing setup.
21-
- command: site:construct
35+
# Run updates.
36+
- command: site:update
2237
options:
2338
placeholder:
2439
- 'name:%{{name}}'

chain/chain-site-test-setup.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Usage: drupal site:test:setup --placeholder="name:subscriptions"
2+
command:
3+
name: site:test
4+
description: 'Sets the test suites.'
5+
commands:
6+
# Create phpunit.xml
7+
- command: site:phpunit:setup
8+
arguments:
9+
name: '%{{name}}'
10+
# Create behat.yml
11+
- command: site:behat:setup
12+
arguments:
13+
name: '%{{name}}'

0 commit comments

Comments
 (0)