.travis.yml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. language: c
  2. addons:
  3. apt:
  4. packages:
  5. - lcov
  6. - imagemagick
  7. homebrew:
  8. packages:
  9. - imagemagick
  10. script:
  11. - mkdir build
  12. - cd build
  13. - cmake ..
  14. - make
  15. - make test
  16. - cd tests
  17. - ./testMyRays
  18. before_install:
  19. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew unlink python@2 ; fi
  20. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install imagemagick ; fi
  21. jobs:
  22. include:
  23. - os: linux
  24. dist: bionic
  25. arch: amd64
  26. compiler: gcc
  27. - os: linux
  28. dist: bionic
  29. arch: amd64
  30. compiler: clang
  31. - os: linux
  32. dist: focal
  33. arch: amd64
  34. compiler: gcc
  35. - os: linux
  36. dist: focal
  37. arch: amd64
  38. compiler: clang
  39. - os: osx
  40. compiler: clang
  41. osx_image: xcode12.2
  42. - os: linux
  43. dist: focal
  44. arch: arm64
  45. compiler: gcc
  46. - os: linux
  47. dist: bionic
  48. arch: arm64
  49. compiler: gcc
  50. - os: osx
  51. compiler: clang
  52. osx_image: xcode10.3
  53. - os: osx
  54. compiler: clang
  55. osx_image: xcode11.6
  56. - os: osx
  57. compiler: clang
  58. osx_image: xcode12
  59. - stage: "Coverage"
  60. os: linux
  61. compiler: gcc
  62. script:
  63. - mkdir coverage
  64. - cd coverage
  65. - cmake .. -DCOVERALLS=ON -DCMAKE_BUILD_TYPE=Debug
  66. - cmake --build .
  67. - cmake --build . --target coveralls
  68. after_success:
  69. - bash <(curl -s https://codecov.io/bash)
  70. allow_failures:
  71. - os: linux
  72. arch: arm64
  73. - os: osx
  74. osx_image: xcode10.3
  75. - os: osx
  76. osx_image: xcode11.6
  77. - os: osx
  78. osx_image: xcode12