Skip to content

Commit

Permalink
Updating acquia-pipelines.yml to create db only if not exists. (#766)
Browse files Browse the repository at this point in the history
  • Loading branch information
grasmash authored Dec 7, 2016
1 parent 3dac6d8 commit ada8d5f
Showing 1 changed file with 2 additions and 9 deletions.
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"

# 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

# Generate
- prepare-artifact:
Expand Down

0 comments on commit ada8d5f

Please sign in to comment.