@@ -647,22 +647,21 @@ jobs:
647647before_install : |
648648 set -e
649649
650- # Check out and prepare the source
651- # Multibuild doesn't have releases, so --depth would break eventually (see
652- # https://superuser.com/questions/1240216/server-does-not-allow-request-for-unadvertised)
653- git submodule update --init multibuild
654-
655- source multibuild/common_utils.sh
650+ if [[ $SDIST == 0 ]]; then
651+ # Check out and prepare the source
652+ # Multibuild doesn't have releases, so --depth would break eventually (see
653+ # https://superuser.com/questions/1240216/server-does-not-allow-request-for-unadvertised)
654+ git submodule update --init multibuild
656655
657- # https://github.com/matthew-brett/multibuild/issues/116
658- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export ARCH_FLAGS=" "; fi
656+ source multibuild/common_utils.sh
659657
660- source multibuild/travis_steps.sh
661- # This sets -x
662- source travis_multibuild_customize.sh
658+ # https://github.com/matthew-brett/multibuild/issues/116
659+ if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export ARCH_FLAGS=" "; fi
663660
664- if [[ $SDIST == 0 ]]; then
661+ source multibuild/travis_steps.sh
662+ # This sets -x
665663
664+ source travis_multibuild_customize.sh
666665 echo $ENABLE_CONTRIB > contrib.enabled
667666 echo $ENABLE_HEADLESS > headless.enabled
668667
@@ -702,12 +701,15 @@ install: |
702701
703702script : |
704703 # Install and run tests
705- if [[ $SDIST == 0 ]]; then
706- set -x
704+ set -x
705+ if [[ $SDIST == 1 ]]; then
706+ echo "skipping tests because of sdist"
707+ else
707708 install_run $PLAT && rc=$? || rc=$?
708- set +x
709709 fi
710710
711+ set +x
712+
711713 #otherwise, Travis logic terminates prematurely
712714 #https://travis-ci.community/t/shell-session-update-command-not-found-in-build-log-causes-build-to-fail-if-trap-err-is-set/817
713715 trap ERR
0 commit comments