.travis.yml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. language: generic
  2. before_install:
  3. - sh package/linux/travis-decrypt-key
  4. script:
  5. - bash package/linux/travis-setup.sh
  6. - if [[ "$BUILD_PL" == false ]]; then mkdir build && cd build; fi
  7. - if [[ "$BUILD_PL" == false ]]; then cmake -DBOOST_ROOT=$BOOST_DIR -DSLIC3R_STATIC=ON -DCMAKE_BUILD_TYPE=Release ../src; fi
  8. - if [[ "$BUILD_PL" == false ]]; then cmake --build .; fi
  9. - if [[ "$BUILD_PL" == false ]]; then ./slic3r_test -s; fi
  10. - if [[ "$BUILD_PL" == true ]]; then perlbrew switch slic3r-perl; fi
  11. - if [[ "$BUILD_PL" == true ]]; then perl ./Build.PL; fi
  12. # - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then ./gui_test -s; fi
  13. branches:
  14. only:
  15. - master
  16. - cppgui
  17. addons:
  18. apt:
  19. sources:
  20. - ubuntu-toolchain-r-test
  21. packages:
  22. - g++-7
  23. - gcc-7
  24. - g++-4.9
  25. - gcc-4.9
  26. - libgtk2.0-0
  27. - libgtk2.0-dev
  28. - freeglut3
  29. - cmake
  30. - wx3.0-headers
  31. - libwxgtk3.0-dev
  32. - wx-common
  33. ssh_known_hosts: dl.slic3r.org
  34. notifications:
  35. irc:
  36. channels:
  37. - chat.freenode.net#slic3r
  38. on_success: change
  39. on_failure: always
  40. use_notice: true
  41. dist: trusty
  42. matrix:
  43. include:
  44. - os: linux
  45. env:
  46. - BUILD_PL=true
  47. - SLIC3R_STATIC=1
  48. - CC=gcc-7
  49. - CXX=g++-7
  50. install:
  51. - export BOOST_DIR=$HOME/boost_1_63_0
  52. - export SLIC3R_STATIC=1
  53. - export CXX=g++-4.9
  54. - export CC=g++-4.9
  55. - source $HOME/perl5/perlbrew/etc/bashrc
  56. after_success:
  57. - eval $(perl -Mlocal::lib=$TRAVIS_BUILD_DIR/local-lib)
  58. - LD_LIBRARY_PATH=$WXDIR/lib package/linux/make_archive.sh linux-x64
  59. - package/linux/appimage.sh x86_64
  60. - package/deploy/sftp.sh linux ~/slic3r-upload.rsa *.bz2 Slic3r*.AppImage
  61. - package/deploy/sftp-symlink.sh linux ~/slic3r-upload.rsa AppImage Slic3r*.AppImage
  62. - package/deploy/sftp-symlink.sh linux ~/slic3r-upload.rsa tar.bz2 *.bz2
  63. - os: linux
  64. env:
  65. - BUILD_PL=false
  66. - WXVERSION=pkg
  67. - CC=gcc-7
  68. - CXX=g++-7
  69. - BOOST_DIR=$HOME/boost_1_63_0
  70. - DISPLAY=:99.0
  71. cache:
  72. apt: true
  73. directories:
  74. - "$HOME/cache"
  75. after_success:
  76. - cp slic3r ../
  77. - LD_LIBRARY_PATH=$WXDIR/lib package/linux/make_archive.sh linux-x64
  78. - package/linux/appimage.sh x86_64
  79. - package/deploy/sftp.sh linux ~/slic3r-upload.rsa *.bz2 Slic3r*.AppImage
  80. - package/deploy/sftp-symlink.sh linux ~/slic3r-upload.rsa AppImage Slic3r*.AppImage
  81. - package/deploy/sftp-symlink.sh linux ~/slic3r-upload.rsa tar.bz2 *.bz2
  82. - os: osx
  83. osx_image: xcode9.4
  84. before_install:
  85. - if [ "${TRAVIS_OS_NAME}" = "osx" ]; then ( sudo Xvfb :99 -ac -screen 0 1024x768x8; echo ok )& fi
  86. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update -v ; fi
  87. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install ccache; fi
  88. env:
  89. - BUILD_PL=false
  90. - WXVERSION=pkg
  91. - BOOST_DIR=$HOME/boost_1_63_0
  92. - DISPLAY=:99.0
  93. cache:
  94. ccache: true
  95. directories:
  96. - $HOME/Library/Caches/Homebrew
  97. env:
  98. global:
  99. - secure: eEVRZNMv7FM6jrOU9iAFkDhWxFQ1WtHBEaObImcvtFUxy6vWSt3ehFFeTRouj3uHQAnbvUzziDyvPPm8/95alv5g/du8ML6YzzqKBKfazM0xQ7SF6R2DQL8lfFIp+RSV7T02byEP1f1g7Zva7xH9szIlDcSfU0pXW4KWbkBFMd8=
  100. - secure: gj338h+qHGccTD/VQFmEJkqdg2McIe2pO0iZ4Ae9BvY5vxkIML4BpoYZQXQTqiAOETnUjlcknY9lx0hI/PfkDD9MSJc5BC/3fMYRCu3SgAclEwklWf9vvtodUeT69mtnZuw1zze1nTbExuOw2mepbqFjxKKMl+9l5oCz4O54fXU=