.travis.yml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. sudo: required
  2. language: python
  3. python: 3.6
  4. env:
  5. global:
  6. # The Arduino IDE will be installed at APPLICATION_FOLDER/arduino
  7. - APPLICATION_FOLDER="${HOME}/arduino-ide"
  8. - SKETCHBOOK_FOLDER="${HOME}/arduino-sketchbook"
  9. before_install:
  10. - git clone https://github.com/per1234/arduino-ci-script.git "${HOME}/scripts/arduino-ci-script"
  11. - cd "${HOME}/scripts/arduino-ci-script"
  12. # Get new tags from the remote
  13. - git fetch --tags
  14. # Checkout the latest tag
  15. - git checkout $(git describe --tags `git rev-list --tags --max-count=1`)
  16. - source "${HOME}/scripts/arduino-ci-script/arduino-ci-script.sh"
  17. #- set_script_verbosity 1
  18. #- set_verbose_output_during_compilation "true"
  19. # Check for library issues that don't affect compilation
  20. - set_library_testing "true"
  21. - set_application_folder "$APPLICATION_FOLDER"
  22. - set_sketchbook_folder "$SKETCHBOOK_FOLDER"
  23. #- install_ide '("1.8.11" "1.8.12" "newest")'
  24. - install_ide '("newest")'
  25. # Install the library from the repository
  26. #- install_library "https://github.com/lvgl/lv_port_esp32/archive/master.zip"
  27. - install_library "TFT_eSPI"
  28. - install_library "JPEGDecoder"
  29. - install_library "LinkedList"
  30. - install_library "lv_arduino"
  31. - install_library "https://github.com/adafruit/Adafruit_NeoPixel/archive/1.5.0.zip" ## "Adafruit_NeoPixel"
  32. - install_library 'https://github.com/bblanchon/ArduinoJson/releases/download/v5.13.5/ArduinoJson-v5.13.5.zip'
  33. - install_library 'https://github.com/h2zero/NimBLE-Arduino/archive/master.zip' # NimBLE
  34. - cp ${TRAVIS_BUILD_DIR}/User_Setup.h /home/travis/arduino-sketchbook/libraries/TFT_eSPI/User_Setup.h
  35. #- install_library 'https://github.com/bblanchon/ArduinoJson.git'
  36. #- install_library "https://github.com/spacehuhn/SimpleList.git"
  37. #
  38. - install_package "esp32:esp32" "https://dl.espressif.com/dl/package_esp32_index.json" # # esp32:esp32:m5stack-core-esp32
  39. #- /home/travis/arduino-ide/arduino-1.8.10/arduino --pref "compiler.warning_level=none" --save-prefs &>/dev/null
  40. #- /home/travis/arduino-ide/arduino-1.8.10/arduino --pref "build.warn_data_percentage=75" --save-prefs &>/dev/null
  41. #- /home/travis/arduino-ide/arduino-1.8.10/arduino --pref "boardsmanager.additional.urls=https://dl.espressif.com/dl/package_esp32_index.json" --save-prefs &>/dev/null
  42. #- /home/travis/arduino-ide/arduino-1.8.10/arduino --install-boards esp32:esp32 &>/dev/null
  43. - pip install pyserial
  44. script:
  45. # Compile all example sketches included with the library
  46. # build_sketch arguments: sketch name, fqbn, allow failure, IDE version/list/range
  47. # - check_library_manager_compliance "$TRAVIS_BUILD_DIR"
  48. - set_ide_preference "compiler.warning_level=auto"
  49. - build_sketch "${TRAVIS_BUILD_DIR}/esp32_marauder/esp32_marauder.ino" "esp32:esp32:d32_pro:FlashFreq=80,UploadSpeed=921600,PartitionScheme=min_spiffs" "false" "newest"
  50. after_script:
  51. # Commit a report of the job results to the CI-reports repository
  52. - USER_NAME="$(echo "$TRAVIS_REPO_SLUG" | cut -d'/' -f 1)"
  53. - REPOSITORY_NAME="$(echo "$TRAVIS_REPO_SLUG" | cut -d'/' -f 2)"
  54. - publish_report_to_repository "$REPORT_GITHUB_TOKEN" "https://github.com/${USER_NAME}/CI-reports.git" "$REPOSITORY_NAME" "build_$(printf "%05d\n" "${TRAVIS_BUILD_NUMBER}")" "false"
  55. # Print a tab separated report of all sketch verification results to the log
  56. - display_report
  57. notifications:
  58. email:
  59. on_success: always
  60. on_failure: always
  61. webhooks:
  62. urls:
  63. - https://www.travisbuddy.com/
  64. on_success: never
  65. on_failure: always