travis-build-main.sh 949 B

12345678910111213141516171819202122232425262728293031323334
  1. #!/bin/bash
  2. set -euo pipefail
  3. # These two commands are only needed on 10.12:
  4. rm -rf /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask
  5. brew uninstall --force postgis cgal sfcgal
  6. brew update -v
  7. brew install boost || brew upgrade boost
  8. brew install perl || brew upgrade perl
  9. brew install cpanminus || brew upgrade cpanminus
  10. brew install wxwidgets || brew upgrade wxwidgets
  11. brew install coreutils || brew upgrade coreutils
  12. brew link --overwrite perl cpanminus
  13. export SLIC3R_STATIC=1
  14. export BOOST_DIR=/usr/local
  15. perl ./Build.PL
  16. # remove X11 because otherwise OpenGL.pm will link libglut.3.dylib instead of GLUT.framework
  17. sudo rm -rf /opt/X11*
  18. export LIBRARY_PATH=/usr/local/lib
  19. # One Wx test fails on 10.12; seems harmless
  20. if [ $TRAVIS_OSX_IMAGE == 'xcode9.2' ]; then
  21. cpanm --local-lib local-lib -f Wx
  22. fi
  23. perl ./Build.PL --gui
  24. # Install PAR::Packer now so that it gets cached by Travis
  25. cpanm --local-lib local-lib PAR::Packer