-
Notifications
You must be signed in to change notification settings - Fork 56
/
Copy pathacquia-pipelines.yml
61 lines (59 loc) · 1.74 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
56
57
58
59
60
61
version: 1.3.0
services:
- mysql
- composer:
version: 2
- php:
version: 8.3
variables:
global:
COMPOSER_BIN: $SOURCE_DIR/vendor/bin
BLT_DIR: $SOURCE_DIR/vendor/acquia/blt
events:
build:
steps:
- setup-env:
type: script
script:
# Set git info.
- git config --global user.name "Acquia Cloud"
- git config --global user.email "[email protected]"
# Create MySQL DB.
- mysql -u root -proot -e "CREATE DATABASE IF NOT EXISTS drupal"
- ldd --version
- js:
type: script
script:
# Acquia pipelines need to be updated to go higher than npm 10
- cd docroot/themes/custom/twentynineteen
- node --version
- nvm use 20
- node --version
- npm install
- dependencies:
type: script
script:
- cd $SOURCE_DIR
- composer install --ansi
- validate:
type: script
script:
- cd $SOURCE_DIR
- composer run-validation
- setup-app:
type: script
script:
- cd $SOURCE_DIR
- composer site-install
- tests:
type: script
script:
- source ${BLT_DIR}/scripts/pipelines/tests
- build-artifact:
type: script
script:
- cd $SOURCE_DIR
- mkdir /tmp/acli-push-artifact
- acli push:artifact --dry-run --no-clone --no-commit
- mv .git /tmp/acli-push-artifact/
- shopt -s dotglob && rm -rf ./* && mv /tmp/acli-push-artifact/* ./