From f31d974b33bf8ac760ae1ba56c583081f51f7bce Mon Sep 17 00:00:00 2001 From: varac Date: Fri, 15 Jul 2016 17:43:53 +0200 Subject: Use bin/ci-build.sh as build script - Use dynamic build vm names --- bin/ci-build.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 bin/ci-build.sh (limited to 'bin') diff --git a/bin/ci-build.sh b/bin/ci-build.sh new file mode 100755 index 00000000..3cb994e5 --- /dev/null +++ b/bin/ci-build.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +. tests/puppet/provider/.platform-test.conf + +# create node(s) with unique id so we can run tests in parallel +export TAG="build${CI_BUILD_ID}" +[ -d "${PROVIDERDIR}/tags" ] || mkdir "${PROVIDERDIR}/tags" +echo '{}' > "${PROVIDERDIR}/tags/${TAG}.json" + +export IP_SUFFIX_START='100' +#NODES='rewdevcouch1:couchdb,soledad rewdevmx1:mx rewdevvpn1:openvpn,tor rewdevweb1:webapp,monitor rewdevplain1: rewdevstatic1:static' +export NODES="single${TAG}:couchdb,soledad,mx,webapp" +leap-platform-test add_nodes "$NODES" + +leap-platform-test -v init_deploy +leap-platform-test -v test +cd tests/puppet/provider +bundle exec leap info +bundle exec leap local destroy -- cgit v1.2.3