~veebers/juju-ci-tools/model_migration_check_all_units_of_charm

« back to all changes in this revision

Viewing changes to run-uitests.bash

  • Committer: Andrew Beach
  • Date: 2016-12-16 16:03:27 UTC
  • mfrom: (1819 trunk)
  • mto: This revision was merged to the branch mainline in revision 1820.
  • Revision ID: andrew.beach@canonical.com-20161216160327-r3p7i785yyu7pnvh
Updated with changes from trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
# Print a summary for the jenkins job description.
53
53
$SCRIPTS/s3ci.py get-summary $REVISION_BUILD $JOB_NAME
54
54
 
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)
57
 
tar -xf $JUJU_ARCHIVE
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/...
64
 
 
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
72
 
    cd $PACKAGE
73
 
    go install ./...
74
 
done
 
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)
75
58
cd $WORKSPACE
76
 
ls $GOPATH/bin
77
59
 
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)
105
87
 
106
88
# Do not reveal credentials.
107
89
echo "devenv/bin/uitest --driver phantom \
108
 
    -c lxd \
 
90
    -c google \
109
91
    --gui-archive $WORKSPACE/$GUI_ARCHIVE \
110
 
    --gopath $GOPATH \
111
92
    --credentials <SECRET> \
112
93
    --admin <SECRET> \
113
94
    --url $STORE_URL" \
 
95
    --juju $JUJU_SOURCE_BINARY \
114
96
    "$SUITE"
115
97
set +x
116
98
devenv/bin/uitest --driver phantom \
117
99
    -c google \
118
100
    --gui-archive $WORKSPACE/$GUI_ARCHIVE \
119
 
    --gopath $GOPATH \
120
101
    --credentials $STORE_CREDENTIALS \
121
102
    --admin $STORE_ADMIN \
122
103
    --url $STORE_URL \
 
104
    --juju $JUJU_SOURCE_BINARY \
123
105
    "$SUITE"