.travis.yml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. sudo: required
  2. dist: trusty
  3. matrix:
  4. include:
  5. #
  6. # Main GCC 7 test
  7. #
  8. - language: cpp
  9. addons:
  10. apt:
  11. sources:
  12. - ubuntu-toolchain-r-test
  13. packages:
  14. # We need i386 packages because we compile libcanard in 32-bit mode, it doesn't support 64-bit platforms.
  15. - g++-7
  16. - g++-7-multilib
  17. - gcc-7-multilib
  18. - linux-libc-dev:i386
  19. script:
  20. - CC=gcc-7 && CXX=g++-7 && cd tests/ && cmake . && make
  21. - ./run_tests --rng-seed time
  22. #
  23. # Main Clang 5 test
  24. #
  25. - language: cpp
  26. addons:
  27. apt:
  28. sources:
  29. - ubuntu-toolchain-r-test
  30. - llvm-toolchain-trusty-5.0
  31. packages:
  32. # We need i386 packages because we compile libcanard in 32-bit mode, it doesn't support 64-bit platforms.
  33. - clang-5.0
  34. - libstdc++-7-dev:i386 # This package contains the C++ standard library used by Clang-5.0
  35. - linux-libc-dev:i386
  36. - libc6-dev-i386
  37. script:
  38. - clang++-5.0 -E -x c++ - -v < /dev/null # Print the Clang configuration for troubleshooting purposes
  39. - cd tests/
  40. - cmake -DCMAKE_C_COMPILER=clang-5.0 -DCMAKE_CXX_COMPILER=clang++-5.0 .
  41. - make
  42. - ./run_tests --rng-seed time
  43. #
  44. # AVR driver test
  45. #
  46. - language: cpp
  47. addons:
  48. apt:
  49. packages:
  50. - gcc-avr
  51. - avr-libc
  52. script:
  53. - mkdir build-avr
  54. - cd build-avr
  55. - cmake ../drivers/avr
  56. - make