Last active
December 28, 2015 12:29
-
-
Save rande/7500974 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/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 [email protected]:/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