-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathacquia-pipelines.yaml
42 lines (41 loc) · 1.23 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
version: 1.3.0
services:
- composer:
version: 2
- mysql
- php:
version: 8.1
variables:
global:
COMPOSER_BIN: $SOURCE_DIR/vendor/bin
SIMPLETEST_BASE_URL: "http://127.0.0.1:8080"
SIMPLETEST_DB: "mysql://root:root@localhost/drupal"
events:
build:
steps:
- setup-env:
type: script
script:
- composer validate --no-check-all --ansi
- composer install --ansi
- mysql -u root -proot -e "CREATE DATABASE IF NOT EXISTS drupal"
- validate:
type: script
script:
- composer drupal:validate
- setup-app:
type: script
script:
- composer drupal:install
- test:
type: script
script:
- ./vendor/bin/drush runserver 8080 &
- ./vendor/bin/phpunit -c docroot/core docroot/core --group=ban || true
- build-artifact:
type: script
script:
- mkdir /tmp/acli-push-artifact
- acli push:artifact --no-push --no-clone --no-commit
- mv .git /tmp/acli-push-artifact/
- shopt -s dotglob && rm -rf ./* && mv /tmp/acli-push-artifact/* ./