@@ -648,41 +648,41 @@ before_install: |
648
648
set -e
649
649
650
650
if [[ $SDIST == 1 ]]; then
651
- echo "sdist build"
651
+ echo "sdist build"
652
652
else
653
- # Check out and prepare the source
654
- # Multibuild doesn't have releases, so --depth would break eventually (see
655
- # https://superuser.com/questions/1240216/server-does-not-allow-request-for-unadvertised)
656
- git submodule update --init multibuild
657
-
658
- source multibuild/common_utils.sh
659
-
660
- # https://github.com/matthew-brett/multibuild/issues/116
661
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export ARCH_FLAGS=" "; fi
662
-
663
- source multibuild/travis_steps.sh
664
- # This sets -x
665
-
666
- source travis_multibuild_customize.sh
667
- echo $ENABLE_CONTRIB > contrib.enabled
668
- echo $ENABLE_HEADLESS > headless.enabled
669
-
670
- if [ -n "$IS_OSX" ]; then
671
- echo "homebrew"
672
- TAPS="$(brew --repository)/Library/Taps"
673
- if [ -e "$TAPS/caskroom/homebrew-cask" -a -e "$TAPS/homebrew/homebrew-cask" ]; then
674
- rm -rf "$TAPS/caskroom/homebrew-cask"
675
- fi
676
- find "$TAPS" -type d -name .git -exec \
677
- bash -xec '
678
- cd $(dirname '\''{}'\'') || echo "status: $?"
679
- git clean -fxd || echo "status: $?"
680
- sleep 1 || echo "status: $?"
681
- git status || echo "status: $?"' \; || echo "status: $?"
682
- brew_cache_cleanup
653
+ # Check out and prepare the source
654
+ # Multibuild doesn't have releases, so --depth would break eventually (see
655
+ # https://superuser.com/questions/1240216/server-does-not-allow-request-for-unadvertised)
656
+ git submodule update --init multibuild
657
+
658
+ source multibuild/common_utils.sh
659
+
660
+ # https://github.com/matthew-brett/multibuild/issues/116
661
+ if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export ARCH_FLAGS=" "; fi
662
+
663
+ source multibuild/travis_steps.sh
664
+ # This sets -x
665
+
666
+ source travis_multibuild_customize.sh
667
+ echo $ENABLE_CONTRIB > contrib.enabled
668
+ echo $ENABLE_HEADLESS > headless.enabled
669
+
670
+ if [ -n "$IS_OSX" ]; then
671
+ echo "homebrew"
672
+ TAPS="$(brew --repository)/Library/Taps"
673
+ if [ -e "$TAPS/caskroom/homebrew-cask" -a -e "$TAPS/homebrew/homebrew-cask" ]; then
674
+ rm -rf "$TAPS/caskroom/homebrew-cask"
683
675
fi
684
- echo "end"
685
- # Not interested in travis internal scripts' output
676
+ find "$TAPS" -type d -name .git -exec \
677
+ bash -xec '
678
+ cd $(dirname '\''{}'\'') || echo "status: $?"
679
+ git clean -fxd || echo "status: $?"
680
+ sleep 1 || echo "status: $?"
681
+ git status || echo "status: $?"' \; || echo "status: $?"
682
+ brew_cache_cleanup
683
+ fi
684
+ echo "end"
685
+ # Not interested in travis internal scripts' output
686
686
fi
687
687
688
688
set +x
@@ -692,11 +692,11 @@ install: |
692
692
set -x
693
693
694
694
if [[ $SDIST == 1 ]]; then
695
- python -m pip install --upgrade pip
696
- python -m pip install scikit-build
697
- python setup.py sdist
695
+ python -m pip install --upgrade pip
696
+ python -m pip install scikit-build
697
+ python setup.py sdist
698
698
else
699
- build_wheel $REPO_DIR $PLAT
699
+ build_wheel $REPO_DIR $PLAT
700
700
fi
701
701
702
702
set +x
@@ -708,7 +708,7 @@ script: |
708
708
if [[ $SDIST == 1 ]]; then
709
709
echo "sdist"
710
710
else
711
- install_run $PLAT && rc=$? || rc=$?
711
+ install_run $PLAT && rc=$? || rc=$?
712
712
fi
713
713
714
714
set +x
@@ -724,12 +724,12 @@ before_cache: |
724
724
set -e; set -x
725
725
if [ -n "$IS_OSX" ]; then
726
726
727
- # When Taps is cached, this dir causes "Error: file exists" on `brew update`
728
- if [ -e "$(brew --repository)/Library/Taps/homebrew/homebrew-cask/homebrew-cask" ]; then
729
- rm -rf "$(brew --repository)/Library/Taps/homebrew/homebrew-cask/homebrew-cask"
730
- fi
727
+ # When Taps is cached, this dir causes "Error: file exists" on `brew update`
728
+ if [ -e "$(brew --repository)/Library/Taps/homebrew/homebrew-cask/homebrew-cask" ]; then
729
+ rm -rf "$(brew --repository)/Library/Taps/homebrew/homebrew-cask/homebrew-cask"
730
+ fi
731
731
732
- brew_cache_cleanup
732
+ brew_cache_cleanup
733
733
734
734
fi
735
735
set +x; set +e
@@ -742,17 +742,17 @@ after_success: |
742
742
if [ -n "$TRAVIS_TAG" ]; then
743
743
744
744
if [[ $ENABLE_CONTRIB == 0 ]]; then
745
- if [[ $ENABLE_HEADLESS == 0 ]]; then
746
- echo "This is default build. Deployment will be done to to PyPI entry opencv-python."
747
- else
748
- echo "This is headless contrib build. Deployment will be done to to PyPI entry opencv-python-headless."
749
- fi
745
+ if [[ $ENABLE_HEADLESS == 0 ]]; then
746
+ echo "This is default build. Deployment will be done to to PyPI entry opencv-python."
747
+ else
748
+ echo "This is headless contrib build. Deployment will be done to to PyPI entry opencv-python-headless."
749
+ fi
750
750
else
751
- if [[ $ENABLE_HEADLESS == 0 ]]; then
752
- echo "This is contrib build. Deployment will be done to to PyPI entry opencv-contrib-python."
753
- else
754
- echo "This is headless contrib build. Deployment will be done to to PyPI entry opencv-contrib-python-headless."
755
- fi
751
+ if [[ $ENABLE_HEADLESS == 0 ]]; then
752
+ echo "This is contrib build. Deployment will be done to to PyPI entry opencv-contrib-python."
753
+ else
754
+ echo "This is headless contrib build. Deployment will be done to to PyPI entry opencv-contrib-python-headless."
755
+ fi
756
756
fi
757
757
758
758
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
0 commit comments