@@ -647,22 +647,21 @@ jobs:
647
647
before_install : |
648
648
set -e
649
649
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
656
655
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
659
657
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
663
660
664
- if [[ $SDIST == 0 ]]; then
661
+ source multibuild/travis_steps.sh
662
+ # This sets -x
665
663
664
+ source travis_multibuild_customize.sh
666
665
echo $ENABLE_CONTRIB > contrib.enabled
667
666
echo $ENABLE_HEADLESS > headless.enabled
668
667
@@ -702,12 +701,15 @@ install: |
702
701
703
702
script : |
704
703
# 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
707
708
install_run $PLAT && rc=$? || rc=$?
708
- set +x
709
709
fi
710
710
711
+ set +x
712
+
711
713
#otherwise, Travis logic terminates prematurely
712
714
#https://travis-ci.community/t/shell-session-update-command-not-found-in-build-log-causes-build-to-fail-if-trap-err-is-set/817
713
715
trap ERR
0 commit comments