From 960f9503e32e0287ff9afcdbc99f499d3ca5f353 Mon Sep 17 00:00:00 2001 From: Jeff Lindsay Date: Fri, 8 Nov 2013 14:22:21 -0800 Subject: [PATCH] remove build dir if exists. use absolute paths --- tests/ci/receiver | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/tests/ci/receiver b/tests/ci/receiver index 26b4a1986..221677631 100755 --- a/tests/ci/receiver +++ b/tests/ci/receiver @@ -2,17 +2,18 @@ set -eo pipefail if [[ $2 == *dokku* ]]; then - mkdir $HOME/build - cd $HOME/build + rm -rf /tmp/build + mkdir /tmp/build + cd /tmp/build tar -xf - echo "-----> Installing dependencies" - sudo DEBIAN_FRONTEND=noninteractive apt-get install -y git make curl software-properties-common + DEBIAN_FRONTEND=noninteractive apt-get install -y git make curl software-properties-common echo "-----> Running make install" - sudo DEBIAN_FRONTEND=noninteractive HOSTNAME=dokku.me make install + DEBIAN_FRONTEND=noninteractive HOSTNAME=dokku.me make install echo "-----> Generating keypair..." - ssh-keygen -f $HOME/.ssh/id_rsa -t rsa -N '' + ssh-keygen -f /root/.ssh/id_rsa -t rsa -N '' echo "-----> Installing SSH public key..." - cat $HOME/.ssh/id_rsa.pub | sudo sshcommand acl-add dokku test + cat /root/.ssh/id_rsa.pub | sudo sshcommand acl-add dokku test echo "-----> Intitial SSH connection to populate known_hosts..." ssh -o StrictHostKeyChecking=no dokku@dokku.me help echo "-----> Running tests"