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" \
20 'robotframework-seleniumlibrary==3.3.1' \
21 'robotframework-databaselibrary==0.8.1' \
22 'robotframework-angularjs==0.0.9' \
23 'robotframework-requests==0.5.0' \
24 'robotframework-sshlibrary==3.3.0' \
25 'robotframework-ftplibrary==1.3' \
26 'robotframework-rammbock==0.4.0.1' \
27 'robotframework-httplibrary==0.4.2' \
28 'robotframework-archivelibrary==0.4' \
29 'robotframework-kafkalibrary==0.0.2'
32 # get the git for the eteutils you will need to add a private key to your ssh before this
33 if [ -d $path/testsuite/eteutils ]
35 # Support LF build location
36 cd $path/testsuite/eteutils
39 git config --global http.sslVerify false
40 if [ -d ~/python-testing-utils ]
42 cd python-testing-utils
43 git pull origin master
45 git clone https://gerrit.onap.org/r/testsuite/python-testing-utils.git
46 cd python-testing-utils
54 --target="$path/robot/library" ./robotframework-onap
57 if [ -d $path/testsuite/heatbridge ]
59 # Support LF build location
60 cd $path/testsuite/heatbridge
63 git config --global http.sslVerify false
64 if [ -d ~/heatbridge ]
67 git pull origin master
69 git clone https://gerrit.onap.org/r/testsuite/heatbridge.git
78 --target="$path/robot/library" \
81 # Go back to execution folder
84 # if the script is running during the image build skip the rest of it
85 # as required software is installed already.
88 # we need to update PATH with chromium-chromedriver
89 echo "Adding in-container chromedriver to PATH"
90 ln -s /usr/lib/chromium-browser/chromedriver /usr/local/bin/chromedriver
92 echo "Skipping desktop steps, building container image..."
95 # Get the appropriate chromedriver. Default to linux64
97 CHROMEDRIVER_URL=http://chromedriver.storage.googleapis.com/2.43
98 CHROMEDRIVER_ZIP=chromedriver_linux64.zip
99 CHROMEDRIVER_TARGET=chromedriver.zip
101 # Handle mac and windows
105 CHROMEDRIVER_ZIP=chromedriver_win32.zip
108 CHROMEDRIVER_ZIP=chromedriver_mac64.zip
110 *) echo "Defaulting to Linux 64" ;;
113 if [ $CHROMEDRIVER_ZIP == 'chromedriver_linux64.zip' ]
115 curl $CHROMEDRIVER_URL/$CHROMEDRIVER_ZIP -o $CHROMEDRIVER_TARGET
116 unzip chromedriver.zip -d /usr/local/bin
118 curl $CHROMEDRIVER_URL/$CHROMEDRIVER_ZIP -o $CHROMEDRIVER_TARGET
119 unzip $CHROMEDRIVER_TARGET
121 rm -rf $CHROMEDRIVER_TARGET
125 # Install kafkacat : https://github.com/edenhill/kafkacat
130 brew install kafkacat ;;
132 apt-get -y install kafkacat
140 brew install protobuf ;;
142 apt-get -y install protobuf-compiler