.travis.yml 2.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. language: cpp
  2. compiler: gcc
  3. env:
  4. global:
  5. # The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
  6. # via the "travis encrypt" command using the project repo's public key
  7. - secure: "nCQtEBd5gQ9zirHNQVpzB0Q8aVKmMuTrlHfZCK5ZOpFItD9zP0YwqUTcw6y8T+14CceY6Go/D+fgeMYR3QmYc2CW0vXMwgBYOFQuPYEef7455ZPdt6wdr4lnyP/B+fj4cWZ4WhV+hMigl2Ly4xaFH6msm+PlIHOdjdaXo3ko0LI="
  8. matrix:
  9. - TARGET=native
  10. - TARGET=lpc11c24
  11. - TARGET=stm32
  12. addons:
  13. coverity_scan:
  14. project:
  15. name: "UAVCAN/libuavcan"
  16. description: "UAVCAN in C++"
  17. notification_email: pavel.kirienko@gmail.com
  18. build_command_prepend: "rm -rf build &> /dev/null || true; mkdir build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Debug"
  19. build_command: "make --ignore-errors"
  20. branch_pattern: coverity_scan
  21. before_install:
  22. - git submodule update --init --recursive
  23. - sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
  24. - sudo add-apt-repository ppa:terry.guo/gcc-arm-embedded -y
  25. - sudo apt-get update -qq
  26. - if [ "$CXX" = "g++" ]; then sudo apt-get install --force-yes -qq g++-4.8; fi
  27. - if [ "$CXX" = "g++" ]; then export CXX="g++-4.8" CC="gcc-4.8"; fi
  28. - sudo apt-get install --force-yes libgtest-dev gcc-arm-none-eabi
  29. - "cd /usr/src/gtest && sudo cmake . && sudo cmake --build . && sudo mv libg* /usr/local/lib/ ; cd -"
  30. before_script: "mkdir build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Debug -DCONTINUOUS_INTEGRATION_BUILD=1"
  31. script:
  32. - if [ "${COVERITY_SCAN_BRANCH}" != 1 ] && [ "${TARGET}" == "native" ]; then make ; fi
  33. - if [ "${COVERITY_SCAN_BRANCH}" != 1 ] && [ "${TARGET}" == "lpc11c24" ]; then cd "$TRAVIS_BUILD_DIR/libuavcan_drivers/lpc11c24/test_olimex_lpc_p11c24" && make all ; fi
  34. - if [ "${COVERITY_SCAN_BRANCH}" != 1 ] && [ "${TARGET}" == "stm32" ]; then cd "$TRAVIS_BUILD_DIR/libuavcan_drivers/stm32/test_stm32f107" && git clone "https://github.com/Zubax/zubax_chibios" && cd zubax_chibios && git checkout stable_v1 && git submodule update --init --recursive && cd .. && make ; fi