Skip to content

Commit

Permalink
Updating acquia-pipelines.yml to create db only if not exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
grasmash committed Dec 7, 2016
1 parent 3dac6d8 commit bc1b76a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion scripts/cloud-hooks/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ deploy_updates() {
export PATH=$repo_root/vendor/bin:$PATH
cd $repo_root

blt deploy:update -Denvironment=$target_env
blt deploy:update -Denvironment=$target_env -Dblt.verbose=true
if [ $? -ne 0 ]; then
echo "Update errored."
status=1;
Expand Down
11 changes: 2 additions & 9 deletions scripts/pipelines/acquia-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ events:
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
- mysql -u root -proot -e "CREATE DATABASE IF NOT EXISTS drupal" -v

# Install project level packages and set project level configuration.
- setup-project:
Expand All @@ -25,16 +24,10 @@ events:
type: script
script:
- export PATH=$PATH:$BUILD_DIR/vendor/bin
# Install chromedriver.
# - ./vendor/acquia/blt/scripts/linux/chromedriver.sh $BUILD_DIR/vendor/bin
# Initialize xvfb (see https://docs.travis-ci.com/user/gui-and-headless-browsers)
# - sudo apt-get install xvfb
# - export DISPLAY=:99.0
# - sh -e /etc/init.d/xvfb start
# The local.hostname must be set to 127.0.0.1:8888 because we are using drush runserver to test the site.
- drupal init
- drupal yaml:update:value blt/project.yml project.local.hostname '127.0.0.1:8888'
- blt -Dbehat.run-server=true -Dcreate_alias=false -Dbehat.launch-selenium=false -Dbehat.tags='~javascript&&experimental' ci:build:validate:test
- blt -Dbehat.run-server=true -Dcreate_alias=false -Dbehat.launch-selenium=false -Dbehat.tags='~javascript&&~experimental' ci:build:validate:test -verbose -D

# Generate
- prepare-artifact:
Expand Down

0 comments on commit bc1b76a

Please sign in to comment.