提交 afdf58ae authored 作者: David Warde-Farley's avatar David Warde-Farley

Update do_nightly_build

上级 3c75bce6
...@@ -15,9 +15,10 @@ if [ "$1" == "--buildbot" ]; then ...@@ -15,9 +15,10 @@ if [ "$1" == "--buildbot" ]; then
shift shift
ARGS="$@" ARGS="$@"
#we set the compiledir to the /Tmp dir to make the test faster by bypassing the nfs network. #we set the compiledir to the /Tmp dir to make the test faster by bypassing the nfs network.
COMPILEDIR=/Tmp/lisa_theano_compile_dir_theano BASE_COMPILEDIR=/Tmp/lisa_theano_compile_dir_theano
ROOT_CWD=/Tmp/nightly_build ROOT_CWD=/Tmp/nightly_build
FLAGS=compiledir=$COMPILEDIR FLAGS=base_compiledir=$BASE_COMPILEDIR
COMPILEDIR=`THEANO_FLAGS=$FLAGS python -c "from __future__ import print_function; import theano; print(theano.config.compiledir)"`
cd ${ROOT_CWD}/Theano cd ${ROOT_CWD}/Theano
git rev-parse HEAD git rev-parse HEAD
#Run tests from inside the Theano directory to prevent import problem. #Run tests from inside the Theano directory to prevent import problem.
...@@ -25,8 +26,8 @@ if [ "$1" == "--buildbot" ]; then ...@@ -25,8 +26,8 @@ if [ "$1" == "--buildbot" ]; then
NOSETESTS=${ROOT_CWD}/Theano/bin/theano-nose NOSETESTS=${ROOT_CWD}/Theano/bin/theano-nose
export PYTHONPATH=${ROOT_CWD}:$PYTHONPATH export PYTHONPATH=${ROOT_CWD}:$PYTHONPATH
else else
COMPILEDIR=`python -c "import theano; print theano.config.compiledir"` COMPILEDIR=`python -c "from __future__ import print_function; import theano; print(theano.config.compiledir)"`
NOSETESTS=`python -c "import theano; print theano.__path__[0]"`/../bin/theano-nose NOSETESTS=`python -c "from __future__ import print_function; import theano; print(theano.__path__[0])"`/../bin/theano-nose
fi fi
echo "Number of elements in the compiledir:" echo "Number of elements in the compiledir:"
...@@ -114,5 +115,5 @@ echo ...@@ -114,5 +115,5 @@ echo
echo echo
END=`date +%s` END=`date +%s`
python -c "print 'Total test time: %dm %ds'%((${END} - ${START})/60, (${END} - ${START})%60)" python -c "from __future__ import print_function; print('Total test time: %dm %ds'%((${END} - ${START})/60, (${END} - ${START})%60))"
date date
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论