Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

63 lines
1.4KB

  1. language: generic
  2. dist: trusty
  3. sudo: required
  4. matrix:
  5. include:
  6. - env: CXX=g++-7 CC=gcc-7
  7. addons:
  8. apt:
  9. packages:
  10. - g++-7
  11. sources: &sources
  12. - ubuntu-toolchain-r-test
  13. - llvm-toolchain-precise
  14. - llvm-toolchain-precise-3.9
  15. - llvm-toolchain-precise-3.8
  16. - sourceline: 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-4.0 main'
  17. key_url: 'http://apt.llvm.org/llvm-snapshot.gpg.key'
  18. - env: CXX=g++-6 CC=gcc-6
  19. addons:
  20. apt:
  21. packages:
  22. - g++-6
  23. sources: *sources
  24. - env: CXX=g++-5 CC=gcc-5
  25. addons:
  26. apt:
  27. packages:
  28. - g++-5
  29. sources: *sources
  30. - env: CXX=clang++-4.0 CC=clang-4.0
  31. addons:
  32. apt:
  33. packages:
  34. - clang-4.0
  35. - libc++-dev
  36. sources: *sources
  37. - env: CXX=clang++-3.9 CC=clang-3.9
  38. addons:
  39. apt:
  40. packages:
  41. - clang-3.9
  42. - libc++-dev
  43. sources: *sources
  44. - env: CXX=clang++-3.8 CC=clang-3.8
  45. addons:
  46. apt:
  47. packages:
  48. - clang-3.8
  49. - libc++-dev
  50. sources: *sources
  51. script:
  52. - if [[ "$CXX" == clang* ]]; then export CXXFLAGS="-stdlib=libc++"; fi
  53. - mkdir build && cd build
  54. - cmake ..
  55. - make
  56. - make unittest