Skip to content

Commit 1eadb94

Browse files
aiudirogfrozencemetery
authored andcommitted
Check that importing works for non-testable OSs
1 parent 2b0f106 commit 1eadb94

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

.travis/build.sh

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,17 @@ fi
3030
python setup.py build_ext --inplace $EXTRA_BUILDEXT
3131
BUILD_RES=$?
3232

33-
if [ x"$KRB5_VER" = "xheimdal" ]; then
34-
# heimdal can't run the tests yet, so just exit
35-
exit $BUILD_RES
36-
fi
37-
38-
if [ "$TRAVIS_OS_NAME" == "windows" ]; then
39-
# Windows can't run tests yet, so just exit
40-
exit $BUILD_RES
41-
fi
42-
4333
if [ $BUILD_RES -ne 0 ]; then
4434
# if the build failed, don't run the tests
4535
exit $BUILD_RES
4636
fi
4737

38+
if [ x"$KRB5_VER" = "xheimdal" ] || [ "$TRAVIS_OS_NAME" = "windows" ]; then
39+
# heimdal/Windows can't run the tests yet, so just make sure it imports and exit
40+
python -c "import gssapi"
41+
exit $?
42+
fi
43+
4844
python setup.py nosetests --verbosity=3
4945
TEST_RES=$?
5046

0 commit comments

Comments
 (0)