File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed
Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,4 @@ install:
1919 - pylint --version
2020
2121script :
22- - cd $TRAVIS_BUILD_DIR/singularity/tests && python -m unittest test_build.py
23- - cd $TRAVIS_BUILD_DIR/singularity/tests && python -m unittest test_package.py
24- - cd $TRAVIS_BUILD_DIR/singularity/tests && pylint $PWD --errors-only --ignore tests --disable=E0401,E0611
22+ - bash $TRAVIS_BUILD_DIR/singularity/tests/run_tests.sh $TRAVIS_BUILD_DIR/singularity/tests /tmp
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ TESTDIR=$1
4+ TEST_RUN_FOLDER=$2
5+
6+ # Make sure the user supplied input arguments
7+ if [ " $# " -ne 2 ]; then
8+ echo " Usage: ./run_tests.sh [directory_run_tests_from] [folder_with_tests]"
9+ echo " ./run_tests.sh $PWD $PWD "
10+ exit
11+ fi
12+
13+ cd $TEST_RUN_FOLDER
14+ nosetests --verbosity=3 --with-doctest --with-coverage --nocapture --cover-package=singularity $TESTDIR /test_package.py $TESTDIR /test_build.py
You can’t perform that action at this time.
0 commit comments