3 # setup : script to setup required runtime environment. This script can be run again to update anything
4 # this should stay in your project directory
7 # save console output in setup_<timestamp>.log file in project directory
8 timestamp=$(date +"%m%d%Y_%H%M%S")
9 LOG_FILE=setup_$timestamp.log
10 exec > >(tee -a ${LOG_FILE} )
11 exec 2> >(tee -a ${LOG_FILE} >&2)
19 --target="$path/robot/library" \
21 'robotframework-selenium2library==1.8.0' \
22 'robotframework-databaselibrary==0.8.1' \
23 'robotframework-extendedselenium2library==0.9.1' \
24 'robotframework-requests==0.5.0' \
25 'robotframework-sshlibrary==2.1.2' \
26 'robotframework-sudslibrary==0.8' \
27 'robotframework-ftplibrary==1.3' \
28 'robotframework-rammbock==0.4.0.1' \
29 'robotframework-httplibrary==0.4.2' \
30 'robotframework-archivelibrary==0.3.2' \
31 'robotframework-kafkalibrary==0.0.2'
34 # get the git for the eteutils you will need to add a private key to your ssh before this
35 if [ -d $path/testsuite/eteutils ]
37 # Support LF build location
38 cd $path/testsuite/eteutils
41 git config --global http.sslVerify false
42 if [ -d ~/python-testing-utils ]
44 cd python-testing-utils
45 git pull origin master
47 git clone https://gerrit.onap.org/r/testsuite/python-testing-utils.git
48 cd python-testing-utils
56 --target="$path/robot/library" ./robotframework-onap
59 if [ -d $path/testsuite/heatbridge ]
61 # Support LF build location
62 cd $path/testsuite/heatbridge
65 git config --global http.sslVerify false
66 if [ -d ~/heatbridge ]
69 git pull origin master
71 git clone https://gerrit.onap.org/r/testsuite/heatbridge.git
80 --target="$path/robot/library" \
84 # NOTE: Patch to incude explicit install of paramiko to 2.0.2 to work with sshlibrary 2.1.2
85 # This should be removed on new release of paramiko (2.1.2) or sshlibrary
86 # https://github.com/robotframework/SSHLibrary/issues/157
89 --target="$path/robot/library" \
93 # Go back to execution folder
96 # if the script is running during the image build skip the rest of it
97 # as required software is installed already.
100 # we need to update PATH with chromium-chromedriver
101 echo "Adding in-container chromedriver to PATH"
102 ln -s /usr/lib/chromium-browser/chromedriver /usr/local/bin/chromedriver
104 echo "Skipping desktop steps, building container image..."
107 # Get the appropriate chromedriver. Default to linux64
109 CHROMEDRIVER_URL=http://chromedriver.storage.googleapis.com/2.43
110 CHROMEDRIVER_ZIP=chromedriver_linux64.zip
111 CHROMEDRIVER_TARGET=chromedriver.zip
113 # Handle mac and windows
117 CHROMEDRIVER_ZIP=chromedriver_win32.zip
120 CHROMEDRIVER_ZIP=chromedriver_mac64.zip
122 *) echo "Defaulting to Linux 64" ;;
125 if [ $CHROMEDRIVER_ZIP == 'chromedriver_linux64.zip' ]
127 curl $CHROMEDRIVER_URL/$CHROMEDRIVER_ZIP -o $CHROMEDRIVER_TARGET
128 unzip chromedriver.zip -d /usr/local/bin
130 curl $CHROMEDRIVER_URL/$CHROMEDRIVER_ZIP -o $CHROMEDRIVER_TARGET
131 unzip $CHROMEDRIVER_TARGET
133 rm -rf $CHROMEDRIVER_TARGET
137 # Install kafkacat : https://github.com/edenhill/kafkacat
142 brew install kafkacat ;;
144 apt-get -y install kafkacat
152 brew install protobuf ;;
154 apt-get -y install protobuf-compiler