-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·37 lines (31 loc) · 1005 Bytes
/
install.sh
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
#! /bin/bash
version=$(grep "## [0-9]" changelog.md | head -n1 | cut -d" " -f2)
echo $version
python3 -m venv .env
source bin/activate
.env/bin/pip install flask plotly wheel opencv-python tarikDrevonUtils
# cd .env
if [ $1 -eq dev ];then
git clone git@github.com:ccp4/electron-diffraction.git
git switch exp
git checkout acbd992
cd electron-diffraction
pip install -e .
else
.env/bin/pip install ccp4ED==1.1.0
fi
cd edly
bower install jquery angular angular-aria angular-touch angular-bootstrap bootstrap-css bootstrap angular-chart jquery-ui plotly MathJax
cd static
ln -s ../bower_components .
###
if [ $2 -eq test ];then
pip install selenium
#### Note :
# Make sure the latest version of selenium running the latest version of chrome browser
# for example selenium==4.9.1 and chromedriver 114.0.5735.106 are compatible
# pip install selenium==4.9.1 pytest-html
# if [ $(chromium.chromedriver --version | cut -d" " -f2) == "114.0.5735.106"];then
# echo ok
# fi
fi