blob: ae15e62a860ced6b80e614257d60ce70fb2464ee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
#!/bin/bash
#
# setup : script to setup required runtime environment. This script can be run again to update anything
# this should stay in your project directory
#
# get the path
path=$(pwd)
pip install --no-cache-dir --target="$path/library" \
'robotframework' \
'requests' \
'robotframework-requests' \
'selenium' \
'robotframework-seleniumlibrary' \
'robotframework-sshlibrary' \
'paramiko' \
'flask' \
'requests'
#
# Get the appropriate chromedriver. Default to linux64
#
CHROMEDRIVER_URL=http://chromedriver.storage.googleapis.com/2.29
CHROMEDRIVER_ZIP=chromedriver_linux64.zip
# Handle mac and windows
OS=`uname -s`
case $OS in
MINGW*_NT*)
CHROMEDRIVER_ZIP=chromedriver_win32.zip
;;
Darwin*)
CHROMEDRIVER_ZIP=chromedriver_mac64.zip
;;
*) echo "Defaulting to Linux 64" ;;
esac
# Temporar remove until we figure out proxy blocking issue
# wget -O chromedriver.zip $CHROMEDRIVER_URL/$CHROMEDRIVER_ZIP
# unzip chromedriver.zip -d /usr/local/bin
if [ $CHROMEDRIVER_ZIP == 'chromedriver_linux64.zip' ]
then
echo Skipping
else
curl $CHROMEDRIVER_URL/$CHROMEDRIVER_ZIP -o chromedriver.zip
unzip chromedriver.zip
fi
|