.travis.yml 1.5 KB

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