You are here

acquia-pipelines.yml in Lightning Layout 8

File

acquia-pipelines.yml
View source
  1. # This file is used by Acquia Pipelines continuous integration. It builds
  2. version: 1.1.0
  3. services:
  4. - mysql
  5. - php:
  6. version: 7.1
  7. events:
  8. build:
  9. steps:
  10. - setup:
  11. type: script
  12. script:
  13. # Add Composer's local bin directory to the PATH so that we will be
  14. # running our installed versions of Drush, PHPCS, Behat, etc.
  15. - export PATH="$HOME/.composer/vendor/bin:$SOURCE_DIR/vendor/bin:$PATH"
  16. - composer validate --no-check-all --ansi --no-interaction
  17. - composer install
  18. - install:
  19. type: script
  20. script:
  21. # Install and create settings.php file.
  22. - cd $SOURCE_DIR
  23. - mysql -u root -proot -e 'CREATE DATABASE drupal;'
  24. - lightning install 'mysql\://root:root@localhost/drupal' standard 'http://127.0.0.1:8080'
  25. - cleanup:
  26. type: script
  27. script:
  28. - cd $SOURCE_DIR
  29. - chmod +w docroot/sites/default/settings.php
  30. # Setup settings file and codebase with minimum required for cloud.
  31. - lightning configure:cloud layoutnightly standard
  32. # Remove the Drush binary and package so it doesn't interfere with
  33. # cloud versions. Doing this the proper way with Composer can cause
  34. # timeouts.
  35. - rm ./vendor/bin/drush
  36. - rm -rf ./vendor/drush