File tree Expand file tree Collapse file tree 2 files changed +6
-16
lines changed Expand file tree Collapse file tree 2 files changed +6
-16
lines changed Original file line number Diff line number Diff line change @@ -11,10 +11,9 @@ install:
1111script :
1212 - cur_dir=$PWD
1313 - export PYTHONPATH=$PYTHONPATH:$PWD/test/tmp/shinken # we need shinken..
14- - export PYTHONPATH=$PYTHONPATH:$PWD/test/tmp/shinken/test
15- - export PYTHONPATH=$PYTHONPATH:$PWD/test/tmp/shinken/test/modules
14+ # - export PYTHONPATH=$PYTHONPATH:$PWD/test/tmp/shinken/test
15+ # - export PYTHONPATH=$PYTHONPATH:$PWD/test/tmp/shinken/test/modules
1616 - export PYTHONPATH=$PYTHONPATH:$PWD/test/tmp/shinken/test/modules/livestatus # we also need mock_livestatus from mod-livestatus..
17- - export PYTHONPATH=$PYTHONPATH:$PWD/test/tmp/shinken/test/modules/livestatus/test # we also need mock_livestatus from mod-livestatus..
1817 - echo $PYTHONPATH
1918 - cd test/tmp/shinken/test
2019 - nosetests -vx --process-restartworker --processes=1 --process-timeout=1800 "$cur_dir/test"
Original file line number Diff line number Diff line change @@ -23,22 +23,24 @@ setup_submodule (){
2323 ( cd $mpath && git status && git log -1)
2424 rmname=$( get_name " $mpath /" )
2525 ln -s " $PWD /$mpath /module" " $PWD /$SHI_DST /test/modules/$rmname "
26+
2627 if [ -f " $PWD /$mpath /test/mock_livestatus.py" ]
2728 then
2829 ln -s " $PWD /$mpath /test/mock_livestatus.py" " $PWD /$SHI_DST /test/modules/$rmname /mock_livestatus.py"
2930 fi
31+
3032 if [ -f " $PWD /$mpath /test/etc" ]
3133 then
3234 cp -r " $PWD /$mpath /test/etc" " $PWD /$SHI_DST /test/etc"
3335 fi
36+
3437 if [ -f " $mpath /requirements.txt" ]
3538 then
3639 pip install -r " $mpath /requirements.txt"
3740 fi
41+
3842 ls -alH " $PWD /$SHI_DST /test/modules/$rmname "
3943 done
40- # we need the livestatus test config files to be in shinken test config dir:
41- # cp -r ~/mod-livestatus/test/etc/* "$SHI_DST/test/etc/"
4244}
4345
4446name=$( get_name)
6870 setup_submodule
6971fi
7072
71- # if [ -f requirements.txt ]
72- # then
73- # pip install -r requirements.txt
74- # fi
75- # if [ -f "$spec_requirement" ]
76- # then
77- # pip install --use-mirrors -r "$spec_requirement"
78- # fi
79- #
8073test_requirement=" test/requirements.txt"
8174if [ -f " $test_requirement " ]
8275then
8881 pip install -r " $test_requirement "
8982fi
9083
91- # cp -r test/etc "$SHI_DST/test/"
92-
9384ln -s " $PWD /module" " $SHI_DST /test/modules/$name "
You can’t perform that action at this time.
0 commit comments