diff --git a/bin/circle-dependencies-post b/bin/circle-dependencies-post index 866f0b9a..2a8e86aa 100755 --- a/bin/circle-dependencies-post +++ b/bin/circle-dependencies-post @@ -2,9 +2,6 @@ set -e -# We need jq to analyse the PR files JSON, so install that first -sudo apt-get -q update && sudo apt-get -q install bc jq - echo "TEST_AND_PUBLISH=1" > "$STATE" if [ -n "$CI_PULL_REQUEST" -a "$CI_PULL_REQUEST" = "$CI_PULL_REQUESTS" ] ; then diff --git a/test/gce.sh b/test/gce.sh index cb3e56b7..22ebc9de 100755 --- a/test/gce.sh +++ b/test/gce.sh @@ -10,8 +10,9 @@ set -e : ${KEY_FILE:=/tmp/gce_private_key.json} : ${SSH_KEY_FILE:=$HOME/.ssh/gce_ssh_key} : ${PROJECT:=positive-cocoa-90213} -: ${IMAGE:=ubuntu-14-04} -: ${TEMPLATE_NAME:=test-template-10} +: ${IMAGE_FAMILY:=ubuntu-1604-lts} +: ${IMAGE_PROJECT:=ubuntu-os-cloud} +: ${TEMPLATE_NAME:=test-template-11} : ${ZONE:=us-central1-a} : ${NUM_HOSTS:=5} SUFFIX="" @@ -34,7 +35,7 @@ function vm_names { # Delete all vms in this account function destroy { names="$(vm_names)" - if [ $(gcloud compute instances list --zone $ZONE -q $names | wc -l) -le 1 ] ; then + if [ $(gcloud compute instances list --zones $ZONE -q $names | wc -l) -le 1 ] ; then return 0 fi for i in {0..10}; do @@ -72,16 +73,24 @@ function install_docker_on { name=$1 ssh -t $name sudo bash -x -s <> /etc/default/docker; -service docker restart +mkdir -p /etc/systemd/system/docker.service.d +cat >/etc/systemd/system/docker.service.d/override.conf <