-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathacquia-pipelines.yaml
64 lines (64 loc) · 1.75 KB
/
acquia-pipelines.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
version: 1.3.0
services:
- composer:
version: 2
- mysql
- php:
version: 8.2
variables:
global:
COMPOSER_BIN: $SOURCE_DIR/vendor/bin
BLT_DIR: $SOURCE_DIR/vendor/acquia/blt
cde-databases:
- frost
events:
build:
steps:
- setup-env:
type: script
script:
- 'composer validate --no-check-all --ansi'
- 'composer install --ansi'
- 'source ${BLT_DIR}/scripts/pipelines/setup_env'
- 'nvm install v12.13.0 --latest-npm'
- 'npm install --global yarn'
- validate:
type: script
script:
- 'source ${BLT_DIR}/scripts/pipelines/validate'
- setup-app:
type: script
script: # @see vendor/acquia/blt/scripts/pipelines/setup_app
- 'set -ev'
- 'export PATH=${COMPOSER_BIN}:$PATH'
- 'blt source:build --no-interaction --ansi --verbose'
- 'set +v'
- drupal-sync:
type: script
script:
- 'blt drupal:sync:default:db --no-interaction --verbose'
- 'drush status-report' # Trigger a requirements check so public directories are generated before files.
- 'blt drupal:sync:default:site --no-interaction --verbose'
- tests:
type: script
script:
- 'source ${BLT_DIR}/scripts/pipelines/tests'
- build-artifact:
type: script
script:
- 'source ${BLT_DIR}/scripts/pipelines/build_artifact'
post-deploy:
steps:
- deploy:
script:
- pipelines-deploy
pr-merged:
steps:
- deploy:
script:
- pipelines-deploy
pr-closed:
steps:
- deploy:
script:
- pipelines-deploy