.travis.yml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. - install_repo_as_library https://github.com/r89m/Button.git
  32. - install_repo_as_library https://github.com/thomasfredericks/Bounce2.git
  33. script:
  34. # Run tests
  35. # - cd ${TRAVIS_BUILD_DIR}
  36. # - make test
  37. # Upload code coverage report
  38. # - coveralls --exclude tests/ --exclude examples/ --gcov-options '\-lp'
  39. # Check that examples compile
  40. - build_examples
  41. notifications:
  42. email:
  43. on_success: change
  44. on_failure: change