forked from NuCOS/nucosObs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
genie.sh
executable file
·50 lines (45 loc) · 1.12 KB
/
genie.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
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
PACKAGE=nucosObs
VENV=./venv
if [ -d "$VENV" ]; then
echo "remove virtual env first"
sleep 2
rm -rf "$VENV"
fi
###################################
echo "----------------------------------------------------"
{
conda create --name $PACKAGE'3_5' python=3.5 -y
source activate $PACKAGE'3_5'
} || {
virtualenv -p $(which python3) $VENV/py3
source $VENV/py3/bin/activate
}
pip install --upgrade pip
pip install nose2
python setup.py sdist
###################################
echo "----------------------------------------------------"
sleep 1
echo "python used: "
which python
python info.py
###################################
echo "----------------------------------------------------"
sleep 1
echo "now install the nucosObs in python 3"
python setup.py install
####################################
echo "----------------------------------------------------"
sleep 1
echo "now run test in py3"
nose2 --plugin nose2.plugins.junitxml --junit-xml
python aftermath.py nose2-junit.xml py3
echo "test done in:"
python info.py
sleep 3
source deactivate
echo "after deactivate"
python info.py
sleep 3
###################################