-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathacquia-pipelines.yml
35 lines (34 loc) · 1.32 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
# This file is used by Acquia Pipelines continuous integration. It builds
version: 1.1.0
services:
- mysql
- php:
version: 7.1
events:
build:
steps:
- setup:
type: script
script:
# Add Composer's local bin directory to the PATH so that we will be
# running our installed versions of Drush, PHPCS, Behat, etc.
- export PATH="$HOME/.composer/vendor/bin:$SOURCE_DIR/vendor/bin:$PATH"
- composer validate --no-check-all --ansi --no-interaction
- composer install
- install:
type: script
script:
# Install and create settings.php file.
- cd $SOURCE_DIR
- mysql -u root -proot -e 'CREATE DATABASE drupal;'
- lightning install 'mysql\://root:root@localhost/drupal' standard 'http://127.0.0.1:8080'
- cleanup:
type: script
script:
- cd $SOURCE_DIR
- chmod +w docroot/sites/default/settings.php
# Setup settings file and codebase with minimum required for cloud.
- lightning configure:cloud workflownightly standard
# Remove dev tools from the Cloud build.
- composer require drush/drush:"8.1.16 as 9.2.1" --no-update
- composer update drush/drush --with-all-dependencies