Skip to content

Commit f6db4f1

Browse files
committed
change compiledir and add xunit for jenkins
1 parent ae4f6d9 commit f6db4f1

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

misc/do_nightly_build

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
#!/bin/bash
2-
#we set the compiledir to the /Tmp dir to make the test faster by bypassing the nfs network.
2+
3+
# If not jenkins, set workspace to local Tmp
4+
if [ -v $WORKSPACE ]; then
5+
WORKSPACE=/Tmp
6+
fi
7+
38
date
4-
ROOT_CWD=/Tmp/nightly_build
5-
COMPILEDIR=/Tmp/lisa_theano_compile_dir_deeplearning
9+
ROOT_CWD=$WORKSPACE/nightly_build
10+
COMPILEDIR=$WORKSPACE/lisa_theano_compile_dir_deeplearning
611
NOSETESTS=${ROOT_CWD}/Theano/bin/theano-nose
12+
XUNIT="--with-xunit --xunit-file="
713

814
FLAGS=warn.ignore_bug_before=0.5,compiledir=${COMPILEDIR}
915
export PYTHONPATH=${ROOT_CWD}/Theano:${ROOT_CWD}/Pylearn:$PYTHONPATH
@@ -19,14 +25,17 @@ echo "git version:" `git rev-parse HEAD`
1925
#echo "executing nosetests with mode=FAST_COMPILE"
2026
#THEANO_FLAGS=${FLAGS},mode=FAST_COMPILE ${NOSETESTS}
2127
echo "executing nosetests speed with mode=FAST_RUN"
22-
THEANO_FLAGS=${FLAGS},mode=FAST_RUN ${NOSETESTS} test.py:speed
28+
FILE=${ROOT_CWD}/dlt_tests.xml
29+
THEANO_FLAGS=${FLAGS},mode=FAST_RUN ${NOSETESTS} ${XUNIT}${FILE} test.py:speed
2330
#echo "executing nosetests speed with mode=FAST_RUN and OMP_NUM_THREADS=2"
2431
#OMP_NUM_THREADS=2 THEANO_FLAGS=${FLAGS},mode=FAST_RUN ${NOSETESTS} test.py:speed
2532
echo "executing nosetests with mode=FAST_RUN,floatX=float32"
26-
THEANO_FLAGS=${FLAGS},mode=FAST_RUN,floatX=float32 ${NOSETESTS}
33+
FILE=${ROOT_CWD}/dlt_32bit_tests.xml
34+
THEANO_FLAGS=${FLAGS},mode=FAST_RUN,floatX=float32 ${NOSETESTS} ${XUNIT}${FILE}
2735

2836
#we change the seed and record it everyday to test different combination. We record it to be able to reproduce bug caused by different seed. We don't want multiple test in DEBUG_MODE each day as this take too long.
2937
#seed=$RANDOM
3038
#echo "executing nosetests with mode=DEBUG_MODE with seed of the day $seed"
31-
#THEANO_DEBUGMODE_CHECK_STRIDES=0 THEANO_DEBUGMODE_PATIENCE=3 THEANO_COMPILEDIR=/Tmp/lisa_theano_compile_dir_deeplearning THEANO_UNITTEST_SEED=$seed THEANO_DEFAULT_MODE=DEBUG_MODE ${NOSETESTS}
39+
#FILE=${ROOT_CWD}/'dlt_debug_tests.xml'
40+
#THEANO_DEBUGMODE_CHECK_STRIDES=0 THEANO_DEBUGMODE_PATIENCE=3 THEANO_COMPILEDIR=$WORKSPACE/lisa_theano_compile_dir_deeplearning THEANO_UNITTEST_SEED=$seed THEANO_DEFAULT_MODE=DEBUG_MODE ${NOSETESTS} ${XUNIT}${FILE}
3241

0 commit comments

Comments
 (0)