forked from NCIOCPL/cgov-digital-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathacquia-pipelines.yml
55 lines (54 loc) · 1.42 KB
/
acquia-pipelines.yml
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
version: 1.3.0
services:
- composer:
version: 2
- mysql
- php:
version: 8.0
variables:
global:
COMPOSER_BIN: $SOURCE_DIR/vendor/bin
BLT_DIR: $SOURCE_DIR/vendor/acquia/blt
events:
build:
steps:
- setup-env:
type: script
script:
- composer validate --no-check-all --ansi
- composer install --ansi
## Use our override
- source ${SOURCE_DIR}/scripts/pipelines/setup_env
## Node is installed as part of setup_env
- validate:
type: script
script:
- source ${BLT_DIR}/scripts/pipelines/validate
- setup-app:
type: script
script:
## Use our override
- source ${SOURCE_DIR}/scripts/pipelines/setup_app
- test-front-end:
type: script
script:
- source ${SOURCE_DIR}/scripts/pipelines/tests_front_end
- tests:
type: script
script:
## Use our override
- source ${SOURCE_DIR}/scripts/pipelines/tests
- build-artifact:
type: script
script:
- source ${BLT_DIR}/scripts/pipelines/build_artifact
pr-merged:
steps:
- deploy:
script:
- pipelines-deploy
pr-closed:
steps:
- deploy:
script:
- pipelines-deploy