github.com/rochacon/deis@v1.0.2-0.20150903015341-6839b592a1ff/tests/bin/accept/lib/platform.sh (about) 1 function build-deis { 2 local version="${1}" 3 4 if is-released-version "${version}"; then 5 deisctl config platform set version="v${version}" 6 else 7 make build dev-release 8 fi 9 } 10 11 function deploy-deis { 12 local version="${1}" 13 14 check-etcd-alive 15 16 deisctl config platform set domain="${DEIS_TEST_DOMAIN}" 17 deisctl config platform set sshPrivateKey="${DEIS_TEST_SSH_KEY}" 18 19 build-deis "${version}" 20 21 deisctl install platform 22 deisctl start platform 23 24 _check-cluster 25 } 26 27 function undeploy-deis { 28 deisctl stop platform 29 deisctl uninstall platform 30 }