Skip to content

Commit e64a8fc

Browse files
authored
Merge pull request lisa-lab#168 from slefrancois/jenkins_buildbot
Jenkins buildbot
2 parents ae4f6d9 + 80b9691 commit e64a8fc

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

misc/do_nightly_build

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,18 @@
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+
if [ -v $TMPDIR ]; then
6+
TMPDIR=/tmp
7+
fi
8+
WORKSPACE=$TMPDIR
9+
fi
10+
311
date
4-
ROOT_CWD=/Tmp/nightly_build
5-
COMPILEDIR=/Tmp/lisa_theano_compile_dir_deeplearning
12+
ROOT_CWD=$WORKSPACE/nightly_build
13+
COMPILEDIR=$WORKSPACE/compile/lisa_theano_compile_dir_deeplearning
614
NOSETESTS=${ROOT_CWD}/Theano/bin/theano-nose
15+
XUNIT="--with-xunit --xunit-file="
716

817
FLAGS=warn.ignore_bug_before=0.5,compiledir=${COMPILEDIR}
918
export PYTHONPATH=${ROOT_CWD}/Theano:${ROOT_CWD}/Pylearn:$PYTHONPATH
@@ -19,14 +28,17 @@ echo "git version:" `git rev-parse HEAD`
1928
#echo "executing nosetests with mode=FAST_COMPILE"
2029
#THEANO_FLAGS=${FLAGS},mode=FAST_COMPILE ${NOSETESTS}
2130
echo "executing nosetests speed with mode=FAST_RUN"
22-
THEANO_FLAGS=${FLAGS},mode=FAST_RUN ${NOSETESTS} test.py:speed
31+
FILE=${ROOT_CWD}/dlt_tests.xml
32+
THEANO_FLAGS=${FLAGS},mode=FAST_RUN ${NOSETESTS} ${XUNIT}${FILE} test.py:speed
2333
#echo "executing nosetests speed with mode=FAST_RUN and OMP_NUM_THREADS=2"
2434
#OMP_NUM_THREADS=2 THEANO_FLAGS=${FLAGS},mode=FAST_RUN ${NOSETESTS} test.py:speed
2535
echo "executing nosetests with mode=FAST_RUN,floatX=float32"
26-
THEANO_FLAGS=${FLAGS},mode=FAST_RUN,floatX=float32 ${NOSETESTS}
36+
FILE=${ROOT_CWD}/dlt_float32_tests.xml
37+
THEANO_FLAGS=${FLAGS},mode=FAST_RUN,floatX=float32 ${NOSETESTS} ${XUNIT}${FILE}
2738

2839
#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.
2940
#seed=$RANDOM
3041
#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}
42+
#FILE=${ROOT_CWD}/'dlt_debug_tests.xml'
43+
#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}
3244

0 commit comments

Comments
 (0)