Skip to content

Instantly share code, notes, and snippets.

@desmondmorris
Last active December 20, 2015 06:49
Show Gist options
  • Save desmondmorris/6088541 to your computer and use it in GitHub Desktop.
Save desmondmorris/6088541 to your computer and use it in GitHub Desktop.
Drupal 7 - Wercker configuration
box: wercker/php
services:
- wercker/mysql
build:
steps:
- script:
name: Install Drush
code: |-
pear channel-discover pear.drush.org
pear install drush/drush
phpenv rehash
- script:
name: Install Drupal
code: |-
drush site-install standard --db-url=$WERCKER_MYSQL_URL --site-name=Testing -y
- script:
name: Enable simpletest
code: |-
drush en simpletest -y
drush vset --yes simpletest_verbose FALSE
- script:
name: Start server
code: |-
drush runserver --server=builtin 8080 & sleep 5
- script:
name: Run tests
code: |-
drush test-run DrupalGotoTest --xml --uri=http://127.0.0.1:8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment