Update version of chrome driver, etc.
[testsuite.git] / setup.sh
index bbb534f..f116f27 100644 (file)
--- a/setup.sh
+++ b/setup.sh
@@ -2,7 +2,14 @@
 #
 # setup : script to setup required runtime environment. This script can be run again to update anything
 # this should stay in your project directory
-#
+
+
+# save console output in setup_<timestamp>.log file in project directory
+timestamp=$(date +"%m%d%Y_%H%M%S")
+LOG_FILE=setup_$timestamp.log
+exec > >(tee -a ${LOG_FILE} )
+exec 2> >(tee -a ${LOG_FILE} >&2)
+
 
 # get the path
 path=$(pwd)
@@ -50,7 +57,7 @@ else
                cd heatbridge
        fi
 fi
-pip install --no-cache-dir --upgrade --target="$path/robot/library" .
+pip install --no-cache-dir --upgrade --target="$path/robot/library" ./heatbridge
 
 
 # NOTE: Patch to incude explicit install of paramiko to 2.0.2 to work with sshlibrary 2.1.2
@@ -58,10 +65,15 @@ pip install --no-cache-dir --upgrade --target="$path/robot/library" .
 # https://github.com/robotframework/SSHLibrary/issues/157
 pip install --no-cache-dir --target="$path/robot/library" -U 'paramiko==2.0.2'
 
+
+# Go back to execution folder
+cd $path
+
+
 #
 # Get the appropriate chromedriver. Default to linux64
 #
-CHROMEDRIVER_URL=http://chromedriver.storage.googleapis.com/2.27
+CHROMEDRIVER_URL=http://chromedriver.storage.googleapis.com/2.33
 CHROMEDRIVER_ZIP=chromedriver_linux64.zip
 
 # Handle mac and windows