.travis.yml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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: osx
  47. compiler: clang
  48. osx_image: xcode10.3
  49. - os: osx
  50. compiler: clang
  51. osx_image: xcode11.6
  52. - os: osx
  53. compiler: clang
  54. osx_image: xcode12
  55. - stage: "Coverage"
  56. os: linux
  57. dist: bionic
  58. arch: amd64
  59. compiler: gcc
  60. script:
  61. - mkdir coverage
  62. - cd coverage
  63. - cmake .. -DCOVERALLS=ON -DCMAKE_BUILD_TYPE=Debug
  64. - cmake --build .
  65. - cmake --build . --target coveralls
  66. after_success:
  67. - bash <(curl -s https://codecov.io/bash)
  68. allow_failures:
  69. - os: linux
  70. arch: arm64
  71. - os: osx