acquia-pipelines.yml in Lightning Layout 8
File
acquia-pipelines.yml
View source
- # 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 layoutnightly standard
- # Remove the Drush binary and package so it doesn't interfere with
- # cloud versions. Doing this the proper way with Composer can cause
- # timeouts.
- - rm ./vendor/bin/drush
- - rm -rf ./vendor/drush