-
Notifications
You must be signed in to change notification settings - Fork 396
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding pipelines WIP. #307
Merged
+64
−1
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
version: 1.0.0 | ||
|
||
events: | ||
build: | ||
steps: | ||
# Install global libraries and set global configurations. | ||
- setup-environment: | ||
type: script | ||
script: | ||
- git config --global user.name "Acquia Cloud" | ||
- git config --global user.email "noreply@acquia.com" | ||
- sudo /etc/init.d/mysql start | ||
- mysql -u root -proot -e "CREATE DATABASE drupal" -v | ||
|
||
- setup-repository: | ||
type: script | ||
script: | ||
- composer install | ||
# Download, install, and use correct node version. | ||
- nvm download 4.4.1 | ||
- nvm install 4.4.1 | ||
- nvm use 4.4.1 | ||
|
||
- run-tests: | ||
type: script | ||
script: | ||
- export PATH=$PATH:$BUILD_DIR/vendor/bin | ||
- drupal init | ||
# The local.hostname must be set to 127.0.0.1:8888 because we are using drush runserver to test the site. | ||
- drupal yaml:update:value project.yml project.local.hostname '127.0.0.1:8888' | ||
- blt -Dbehat.run-server=true -Dcreate_alias=false -Dbehat.launch-phantom=true ci:build:validate:test | ||
|
||
- prepare-artifact: | ||
type: script | ||
script: | ||
# Generate artifact in a separate directory. | ||
- export NEW_BUILD_DIR=/tmp/artifact | ||
- bltl deploy:build -Ddeploy.dir=$NEW_BUILD_DIR | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Typo |
||
# Copy git history to artifact directory. Required for pipelines to commit and push. | ||
- cp -R $BUILD_DIR/.git $NEW_BUILD_DIR/ | ||
# Replace build directory with artifact. | ||
- rm -rf $BUILD_DIR | ||
- mv $NEW_BUILD_DIR $BUILD_DIR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
template/docroot/sites/default/settings/pipelines.settings.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
$databases = array( | ||
'default' => array( | ||
'default' => array( | ||
'database' => 'drupal', | ||
'username' => 'root', | ||
'password' => 'root', | ||
'host' => '127.0.0.1', | ||
'port' => '3306', | ||
'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql', | ||
'driver' => 'mysql', | ||
'prefix' => '', | ||
), | ||
), | ||
); |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NVM is not yet available