Skip to content

Instantly share code, notes, and snippets.

@rande
Last active December 28, 2015 12:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rande/7500974 to your computer and use it in GitHub Desktop.
Save rande/7500974 to your computer and use it in GitHub Desktop.
#!/bin/sh -ex
# reset local junit data
rm -rf junit; mkdir junit
# update puppet submodules
git submodule update --init
# add the ssh agent, so capistrano can use it
eval `ssh-agent`; ssh-add /var/lib/jenkins/.ssh/id_rsa
# deploy code
ROLES=web cap azure puppet deploy deploy:cleanup
ROLES=web COMMAND="cd /usr/local/web/net.cloudapp.sonata-dev/current \
&& php load_data.php && bin/client_ci.sh" cap azure invoke
# retrieve remote PHPUnit junit code
scp azureuser@sonata-dev.cloudapp.net:/usr/local/web/net.cloudapp.sonata-dev/current/junit/*.xml junit/
# install behat and launch functional tests
composer install --dev --prefer-dist
bin/behat -c behat_azure.yml --format=pretty,junit --out=,junit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment