You are here

periodic-test.sh in Realistic Dummy Content 3.x

#!/bin/bash
set -e
source ~/.docker-host-ssh-credentials

# Create a droplet
PRIVATE_IP=$(ssh "$DOCKERHOSTUSER@$DOCKERHOST" \
  "./digitalocean/scripts/new-droplet.sh realistic-dummy-content")
# https://github.com/dcycle/docker-digitalocean-php#public-vs-private-ip-addresses
IP=$(ssh "$DOCKERHOSTUSER@$DOCKERHOST" "./digitalocean/scripts/list-droplets.sh" |grep "$PRIVATE_IP" --after-context=10|tail -1|cut -b 44-)
echo "Created Droplet at $IP"
sleep 90
ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no \
  root@"$IP" \
  "git clone http://github.com/dcycle/realistic_dummy_content && \
  cd realistic_dummy_content && \
  ./scripts/ci.sh"

File

scripts/jenkins/periodic-test.sh
View source
  1. #!/bin/bash
  2. set -e
  3. source ~/.docker-host-ssh-credentials
  4. # Create a droplet
  5. PRIVATE_IP=$(ssh "$DOCKERHOSTUSER@$DOCKERHOST" \
  6. "./digitalocean/scripts/new-droplet.sh realistic-dummy-content")
  7. # https://github.com/dcycle/docker-digitalocean-php#public-vs-private-ip-addresses
  8. IP=$(ssh "$DOCKERHOSTUSER@$DOCKERHOST" "./digitalocean/scripts/list-droplets.sh" |grep "$PRIVATE_IP" --after-context=10|tail -1|cut -b 44-)
  9. echo "Created Droplet at $IP"
  10. sleep 90
  11. ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no \
  12. root@"$IP" \
  13. "git clone http://github.com/dcycle/realistic_dummy_content && \
  14. cd realistic_dummy_content && \
  15. ./scripts/ci.sh"