🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
1.8 KiB

  1. sudo: required
  2. dist: trusty
  3. language: cpp
  4. os:
  5. - linux
  6. matrix:
  7. include:
  8. - os: linux
  9. env: COMPILER=g++-4.9
  10. addons:
  11. apt:
  12. packages:
  13. - g++-4.9
  14. sources: &sources
  15. - llvm-toolchain-trusty-3.8
  16. - llvm-toolchain-trusty-5.0
  17. - ubuntu-toolchain-r-test
  18. - os: linux
  19. env: COMPILER=g++-4.9 UNICODE_OPTIONS=-DCXXOPTS_USE_UNICODE_HELP=Yes
  20. addons:
  21. apt:
  22. packages:
  23. - g++-4.9
  24. sources: *sources
  25. - os: linux
  26. env: COMPILER=g++-5
  27. addons:
  28. apt:
  29. packages:
  30. - g++-5
  31. sources: *sources
  32. - os: linux
  33. env: COMPILER=g++-5 UNICODE_OPTIONS=-DCXXOPTS_USE_UNICODE_HELP=Yes
  34. addons:
  35. apt:
  36. packages:
  37. - g++-5
  38. sources: *sources
  39. - os: linux
  40. env: COMPILER=clang++-3.8 CXXFLAGS=-stdlib=libc++
  41. addons:
  42. apt:
  43. packages:
  44. - clang-3.8
  45. - libc++-dev
  46. sources: *sources
  47. - os: linux
  48. env: COMPILER=clang++-3.8 CXXFLAGS=-stdlib=libc++ UNICODE_OPTIONS=-DCXXOPTS_USE_UNICODE_HELP=Yes
  49. addons:
  50. apt:
  51. packages:
  52. - clang-3.8
  53. - libc++-dev
  54. sources: *sources
  55. - os: linux
  56. env: COMPILER=clang++-5.0 CMAKE_OPTIONS=-DCXXOPTS_CXX_STANDARD=17
  57. addons:
  58. apt:
  59. packages:
  60. - clang-5.0
  61. - g++-5
  62. sources: *sources
  63. script: >
  64. cmake -DCXXOPTS_BUILD_TESTS=ON -DCMAKE_CXX_COMPILER=$COMPILER
  65. -DCMAKE_CXX_FLAGS=$CXXFLAGS $UNICODE_OPTIONS $CMAKE_OPTIONS .
  66. && make && make ARGS=--output-on-failure test
  67. before_install:
  68. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
  69. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install icu4c; fi