.travis.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # Travis.yml
  2. # Shamelessly stolen from: https://github.com/rlogiacco/MicroDebug/blob/master/.travis.yml
  3. # and from https://github.com/tzapu/WiFiManager/blob/master/.travis.yml via the blog post at:
  4. # https://tzapu.com/automate-arduino-ide-esp8266-build-testing-travisci/
  5. language: cpp
  6. sudo: required
  7. addons:
  8. apt:
  9. sources:
  10. # - ubuntu-toolchain-r-test
  11. packages:
  12. # - gcc-4.8
  13. # - g++-4.8
  14. before_install:
  15. # Setup Test Environment
  16. # - sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 90
  17. # - sudo update-alternatives --install /usr/bin/gcov gcov /usr/bin/gcov-4.8 90
  18. # Get travis-scripts
  19. - git clone https://github.com/r89m/travis-scripts.git
  20. - source $TRAVIS_BUILD_DIR/travis-scripts/arduino.sh
  21. # Setup Arduino Environment
  22. - setup_env
  23. # Install coveralls
  24. # - pip install --user cpp-coveralls
  25. install:
  26. # Check versions
  27. # - g++ --version
  28. # - gcov --version
  29. # Install Libraries
  30. - install_repo_as_library
  31. script:
  32. # Run tests
  33. # - cd ${TRAVIS_BUILD_DIR}
  34. # - make test
  35. # Upload code coverage report
  36. # - coveralls --exclude tests/ --exclude examples/ --gcov-options '\-lp'
  37. # Check that examples compile
  38. - build_examples
  39. notifications:
  40. email:
  41. on_success: change
  42. on_failure: change