Shell scripts now use new ycmd location

This commit is contained in:
Strahinja Val Markovic 2014-05-13 15:03:32 -07:00
parent f1cf9186cb
commit 15cef03497
5 changed files with 11 additions and 10 deletions

View File

@ -70,14 +70,14 @@ function num_cores {
function install {
ycm_dir=`pwd`
ycmd_dir=`pwd`/third_party/ycmd
build_dir=`mktemp -d -t ycm_build.XXXXXX`
pushd $build_dir
if [[ `uname -s` == "Darwin" ]]; then
cmake -G "Unix Makefiles" $(python_finder) "$@" . $ycm_dir/cpp
cmake -G "Unix Makefiles" $(python_finder) "$@" . $ycmd_dir/cpp
else
cmake -G "Unix Makefiles" "$@" . $ycm_dir/cpp
cmake -G "Unix Makefiles" "$@" . $ycmd_dir/cpp
fi
make -j $(num_cores) ycm_support_libs
@ -86,14 +86,14 @@ function install {
}
function testrun {
ycm_dir=`pwd`
ycmd_dir=`pwd`/third_party/ycmd
build_dir=`mktemp -d -t ycm_build.XXXXXX`
pushd $build_dir
cmake -G "Unix Makefiles" "$@" . $ycm_dir/cpp
cmake -G "Unix Makefiles" "$@" . $ycmd_dir/cpp
make -j $(num_cores) ycm_core_tests
cd ycm/tests
LD_LIBRARY_PATH=$ycm_dir/python ./ycm_core_tests
LD_LIBRARY_PATH=$ycmd_dir ./ycm_core_tests
popd
rm -rf $build_dir

View File

@ -5,4 +5,4 @@ ag \
--ignore OmniSharpServer \
--ignore testdata \
TODO \
cpp/ycm python autoload plugin
third_party/ycmd/cpp/ycm python autoload plugin

View File

@ -7,7 +7,8 @@ function usage {
exit 0
}
flake8 --select=F,C9 --max-complexity=10 python
flake8 --select=F,C9 --max-complexity=10 --exclude=.git,cpp \
python third_party/ycmd/ycmd
use_clang_completer=true
for flag in $@; do
@ -40,7 +41,7 @@ for directory in third_party/*; do
done
if $use_clang_completer; then
nosetests -v python
nosetests -v python third_party/ycmd/ycmd
else
nosetests -v --exclude=".*Clang.*" python
nosetests -v --exclude=".*Clang.*" python third_party/ycmd/ycmd
fi