Skip to content

Commit

Permalink
jenkins test (#3534)
Browse files Browse the repository at this point in the history
  • Loading branch information
piiswrong authored and pluskid committed Oct 16, 2016
1 parent 8bcbebf commit 2e9d9e6
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ os:

env:
# code analysis
- TASK=lint
# - TASK=lint
# build mxnet.so with CUDA
- TASK=build
# run tests/cpp
Expand All @@ -23,10 +23,14 @@ env:

matrix:
exclude:
- os: osx
env: TASK=lint
- os: osx
env: TASK=julia JULIA_VER=0.4
- os: linux
env: TASK=build
- os: linux
env: TASK=cpp_test
- os: linux
env: TASK=python_test
- os: linux
env: TASK=r_test

Expand Down
13 changes: 13 additions & 0 deletions tests/jenkins/format
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# match line starting with 'error ', case-insensitive
error /(?i)^error /

# list of warnings here...
warning /[Ww]arning/
warning /WARNING/

# create a quick access link to lines in the report containing 'INFO'
info /INFO/

# each line containing 'BUILD' represents the start of a section for grouping errors and warnings found after the line.
# also creates a quick access link.
start /BUILD/
32 changes: 32 additions & 0 deletions tests/jenkins/run_test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
echo "BUILD make"
cp make/config.mk .
echo "USE_CUDA=1" >> config.mk
echo "USE_CUDA_PATH=/usr/local/cuda" >> config.mk
echo "USE_CUDNN=1" >> config.mk
make -j 4 || exit -1

echo "BUILD lint"
make lint || exit -1

echo "BUILD cpp_test"
make -j 4 test || exit -1
export MXNET_ENGINE_INFO=true
for test in tests/cpp/*_test; do
./$test || exit -1
done
export MXNET_ENGINE_INFO=false

echo "BUILD python_test"
nosetests --verbose tests/python/unittest || exit -1
nosetests --verbose tests/python/gpu/test_operator_gpu.py || exit -1
nosetests --verbose tests/python/train || exit -1

echo "BUILD python3_test"
nosetests3 --verbose tests/python/unittest || exit -1
nosetests3 --verbose tests/python/gpu/test_operator_gpu.py || exit -1
nosetests3 --verbose tests/python/train || exit -1

# echo "BUILD julia_test"
# export PATH="${PATH}:${HOME}/julia/bin"
# export MXNET_HOME="${PWD}"
# julia -e 'Pkg.clone("MXNet"); Pkg.checkout("MXNet"); Pkg.build("MXNet"); Pkg.test("MXNet")' || exit -1

0 comments on commit 2e9d9e6

Please sign in to comment.