Skip to content

Commit e4b6a4d

Browse files
committed
trying with nosetests
1 parent 7a92bc1 commit e4b6a4d

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

.travis.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,4 @@ install:
1919
- pylint --version
2020

2121
script:
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

singularity/tests/run_tests.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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

0 commit comments

Comments
 (0)