52
52
# Print a summary for the jenkins job description.
53
53
$SCRIPTS/s3ci.py get-summary $REVISION_BUILD $JOB_NAME
55
# Get the pristine tarfile and unpack it to build a tainted testing juju.
56
JUJU_ARCHIVE=$($SCRIPTS/s3ci.py get --config $S3_CONFIG $REVISION_BUILD build-revision juju-core_.*.tar.gz)
58
JUJU_DIR=$(basename $JUJU_ARCHIVE .tar.gz)
59
export GOPATH=$WORKSPACE/$JUJU_DIR
60
JUJU_PACKAGE=$GOPATH/src/github.com/juju/juju
61
CHARM_PACKAGE=$GOPATH/src/github.com/juju/charm
62
# Add the charm package to the tree.
63
go get github.com/juju/charm/...
65
# If tree must be tampered with, then let it be us who do it to ensure
66
# we understand what is not being tested.
67
CSCLIENT="$GOPATH/src/gopkg.in/juju/charmrepo.v2-unstable/csclient/csclient.go"
68
API_URL=$(echo $STORE_URL | sed -e "s,//,//api.,")
69
SERVER_PATTERN="s,https://api.jujucharms.com,$API_URL,"
70
sed -i -e "$SERVER_PATTERN" $CSCLIENT
71
for PACKAGE in $JUJU_PACKAGE $CHARM_PACKAGE; do
55
# Get the built version of juju that we want to test with.
56
JUJU_SOURCE=$($SCRIPTS/s3ci.py get-juju-bin --config $S3_CONFIG $REVISION_BUILD ./)
57
JUJU_SOURCE_BINARY=$(readlink -f $JUJU_SOURCE)
78
60
# Get the releases Juju GUI.
79
61
GUI_URL=$(sstream-query http://streams.canonical.com/juju/gui/streams/v1/index.json --output-format="%(item_url)s" | head -1)
106
88
# Do not reveal credentials.
107
89
echo "devenv/bin/uitest --driver phantom \
109
91
--gui-archive $WORKSPACE/$GUI_ARCHIVE \
111
92
--credentials <SECRET> \
112
93
--admin <SECRET> \
113
94
--url $STORE_URL" \
95
--juju $JUJU_SOURCE_BINARY \
116
98
devenv/bin/uitest --driver phantom \
118
100
--gui-archive $WORKSPACE/$GUI_ARCHIVE \
120
101
--credentials $STORE_CREDENTIALS \
121
102
--admin $STORE_ADMIN \
122
103
--url $STORE_URL \
104
--juju $JUJU_SOURCE_BINARY \