acquia-pipelines.yml in Lightning Workflow 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 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