summaryrefslogtreecommitdiff
path: root/bin/ci-build.sh
blob: 248bd9f80213c3e16db75c039b6d9c5d2f7b6055 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

. tests/puppet/provider/.platform-test.conf

# break on every error
set -e

# 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,openvpn,tor,monitor,obfsproxy"
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 "${TAG}"
bundle exec leap local destroy "${TAG}"