.travis.yml 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. - cp ${TRAVIS_BUILD_DIR}/User_Setup.h /home/travis/arduino-sketchbook/libraries/TFT_eSPI/User_Setup.h
  34. #- install_library 'https://github.com/bblanchon/ArduinoJson.git'
  35. #- install_library "https://github.com/spacehuhn/SimpleList.git"
  36. #
  37. - install_package "esp32:esp32" "https://dl.espressif.com/dl/package_esp32_index.json" # # esp32:esp32:m5stack-core-esp32
  38. #- /home/travis/arduino-ide/arduino-1.8.10/arduino --pref "compiler.warning_level=none" --save-prefs &>/dev/null
  39. #- /home/travis/arduino-ide/arduino-1.8.10/arduino --pref "build.warn_data_percentage=75" --save-prefs &>/dev/null
  40. #- /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
  41. #- /home/travis/arduino-ide/arduino-1.8.10/arduino --install-boards esp32:esp32 &>/dev/null
  42. - pip install pyserial
  43. script:
  44. # Compile all example sketches included with the library
  45. # build_sketch arguments: sketch name, fqbn, allow failure, IDE version/list/range
  46. # - check_library_manager_compliance "$TRAVIS_BUILD_DIR"
  47. - set_ide_preference "compiler.warning_level=auto"
  48. - build_sketch "${TRAVIS_BUILD_DIR}/esp32_marauder/esp32_marauder.ino" "esp32:esp32:d32_pro:FlashFreq=80,UploadSpeed=921600,PartitionScheme=min_spiffs" "false" "newest"
  49. after_script:
  50. # Commit a report of the job results to the CI-reports repository
  51. - USER_NAME="$(echo "$TRAVIS_REPO_SLUG" | cut -d'/' -f 1)"
  52. - REPOSITORY_NAME="$(echo "$TRAVIS_REPO_SLUG" | cut -d'/' -f 2)"
  53. - 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"
  54. # Print a tab separated report of all sketch verification results to the log
  55. - display_report
  56. notifications:
  57. email:
  58. on_success: always
  59. on_failure: always
  60. webhooks:
  61. urls:
  62. - https://www.travisbuddy.com/
  63. on_success: never
  64. on_failure: always