~ibmcharmers/charms/trusty/ibm-wxs/devel

« back to all changes in this revision

Viewing changes to tests/00-setup

  • Committer: anitanayak at ibm
  • Date: 2017-03-05 12:18:48 UTC
  • Revision ID: anitanayak@in.ibm.com-20170305121848-m86blq9hoetsy2y3
deprecating the charm

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/bash
2
 
 
3
 
# ATTENTION: wxs_url must contain the repository with
4
 
#            your WXS packages
5
 
 
6
 
WXS_HOST=${WXS_HOST?Error: IBM WXS host must be defined in tests/00-setup}
7
 
WXS_PACKAGE_DIR=${WXS_PACKAGE_DIR?Error: IBM WXS package directory must be defined in tests/00-setup}
8
 
WXS_USERNAME=${WXS_USERNAME?Error: Username must be defined in tests/00-setup}
9
 
WXS_PASSWORD=${WXS_PASSWORD?Error: Password must be defined in tests/00-setup}
10
 
WXS_BASE_PKG=${WXS_BASE_PKG?Error: IBM WXS base package be defined in tests/00-setup}
11
 
WXS_FIX_PKG=${WXS_FIX_PKG?Error: IBM WXS fix package be defined in tests/00-setup}
12
 
IM_NAME=${IM_NAME?Error: IBM IM file name to be defined in tests/00-setup}
13
 
SHA_BASE_PKG=${SHA_BASE_PKG?Error: IBM WXS sha base package be defined in tests/00-setup}
14
 
SHA_FIX_PKG=${SHA_FIX_PKG?Error: IBM WXS sha fixpack package be defined in tests/00-setup}
15
 
SHA_IM_PKG=${SHA_IM_PKG?Error: IBM WXS sha IM  package be defined in tests/00-setup}
16
 
 
17
 
# Add a local configuration file
18
 
cat << EOF > local.yaml
19
 
wxs:
20
 
 wxs_host: "$WXS_HOST"
21
 
 wxs_package_dir: "$WXS_PACKAGE_DIR"
22
 
 wxs_username: "$WXS_USERNAME"
23
 
 wxs_password: "$WXS_PASSWORD"
24
 
 wxs_base_package: "$WXS_BASE_PKG"
25
 
 wxs_fix_pkg: "$WXS_FIX_PKG"
26
 
 im_name: "$IM_NAME"
27
 
 sha_base_pkg: "$SHA_BASE_PKG"
28
 
 sha_fix_pkg: "$SHA_FIX_PKG"
29
 
 sha_im_pkg: "$SHA_IM_PKG"
30
 
EOF
31
 
 
32
 
add-apt-repository ppa:juju/stable -y
33
 
apt-get update
34
 
apt-get install amulet -y