~andrewjbeach/juju-ci-tools/make-local-patcher

« back to all changes in this revision

Viewing changes to retrieve-ubuntu-packages.bash

  • Committer: John George
  • Date: 2015-01-14 22:03:47 UTC
  • mto: This revision was merged to the branch mainline in revision 798.
  • Revision ID: john.george@canonical.com-20150114220347-e8q5wezs1qg9a00u
Added support for setting the juju path, series and agent_url.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
PORTS_ARCH="http://ports.ubuntu.com/pool/universe/j/juju-core/"
13
13
ALL_ARCHIVES="$UBUNTU_ARCH $PORTS_ARCH"
14
14
 
 
15
TOKEN="chiyo-sakaki-osaka-yomi-tomo"
15
16
TRUSTY_AMD64="certify-trusty-amd64"
16
17
TRUSTY_PPC64="certify-trusty-ppc64"
17
18
TRUSTY_I386="certify-trusty-i386"
36
37
}
37
38
 
38
39
 
 
40
setup_workspace() {
 
41
    rm $WORKSPACE/* -rf
 
42
    mkdir -p $ARTIFACTS_PATH
 
43
    touch $ARTIFACTS_PATH/empty
 
44
}
 
45
 
 
46
 
39
47
retrieve_packages() {
40
48
    # Retrieve the $RELEASE packages that contain jujud,
41
49
    # or copy a locally built package.
57
65
 
58
66
 
59
67
start_series_arch_tests() {
60
 
    [[ -z $TOKEN ]] && return 0
 
68
    [[ $START_OTHER_TESTS == "false" ]] && return 0
61
69
    encoded_version=$(echo "$VERSION" | sed 's,[+],%2B,')
62
70
    query="token=$TOKEN&VERSION=$encoded_version"
63
71
    for job in $TRUSTY_AMD64 $TRUSTY_PPC64 $TRUSTY_I386; do
67
75
}
68
76
 
69
77
 
70
 
TOKEN=""
71
 
while [[ "${1-}" != "" && $1 =~ ^-.* ]]; do
 
78
START_OTHER_TESTS="false"
 
79
while [[ "${1-}" != "" && $1 =~ ^-.*  ]]; do
72
80
    case $1 in
73
81
        --start-other-tests)
74
 
            shift
75
 
            TOKEN=$1
 
82
            START_OTHER_TESTS="true"
76
83
            ;;
77
84
    esac
78
85
    shift
82
89
VERSION=$1
83
90
 
84
91
check_deps
 
92
setup_workspace
85
93
retrieve_packages
86
94
start_series_arch_tests