update travis to include esp32, stm32, removed precompiled releases for now
This commit is contained in:
parent
8cbf028b98
commit
79aa5b8fd9
1 changed files with 29 additions and 27 deletions
68
.travis.yml
68
.travis.yml
|
@ -3,47 +3,49 @@ env:
|
||||||
global:
|
global:
|
||||||
# You can uncomment this to explicitly choose an (old) version of the Arduino IDE
|
# You can uncomment this to explicitly choose an (old) version of the Arduino IDE
|
||||||
#- ARDUINO_IDE_VERSION="1.8.7"
|
#- ARDUINO_IDE_VERSION="1.8.7"
|
||||||
- ADDITIONAL_URLS="https://adafruit.github.io/arduino-board-index/package_adafruit_index.json"
|
- ADDITIONAL_URLS="https://adafruit.github.io/arduino-board-index/package_adafruit_index.json,https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json,https://github.com/stm32duino/BoardManagerFiles/raw/master/STM32/package_stm_index.json"
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- ~/arduino_ide
|
- ~/arduino_ide
|
||||||
- ~/.arduino15/packages/
|
- ~/.arduino15/packages/
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
- stage: "Feather M0"
|
- stage: "Build"
|
||||||
env: BOARD_NAME="FeatherM0" ARCH="cortex-m0plus" CORE="adafruit:samd" BOARD="adafruit:samd:adafruit_feather_m0"
|
name: "Feather M0"
|
||||||
- stage: "Arduino Zero"
|
env: CORE="adafruit:samd" BOARD="adafruit:samd:adafruit_feather_m0"
|
||||||
env: BOARD_NAME="ArduinoZero" ARCH="cortex-m0plus" CORE="arduino:samd" BOARD="arduino:samd:mzero_bl"
|
- name: "Arduino Zero"
|
||||||
|
env: CORE="arduino:samd" BOARD="arduino:samd:mzero_bl"
|
||||||
before_install:
|
- name: "ESP32"
|
||||||
- curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=/usr/bin sudo sh
|
env: CORE="esp32:esp32" BOARD="esp32:esp32:d32"
|
||||||
- arduino-cli core update-index --additional-urls $ADDITIONAL_URLS
|
- name: "STM32"
|
||||||
- arduino-cli core install arduino:samd -v
|
env: CORE="STM32:stm32" BOARD="STM32:stm32:Nucleo_144"
|
||||||
- arduino-cli core install adafruit:samd -v --additional-urls $ADDITIONAL_URLS
|
|
||||||
- mkdir -p $HOME/Arduino/libraries
|
|
||||||
- rm -rf $HOME/Arduino/libraries/EthernetLarge
|
|
||||||
- git clone https://github.com/OPEnSLab-OSU/EthernetLarge.git $HOME/Arduino/libraries/EthernetLarge
|
|
||||||
install:
|
|
||||||
- ln -s $PWD $HOME/Arduino/libraries/.
|
|
||||||
- echo "dot_a_linkage=true" >> library.properties
|
|
||||||
script:
|
script:
|
||||||
- arduino-cli compile --verbose --warnings all --fqbn $BOARD $PWD/examples/EthernetHTTPS
|
- arduino-cli compile --verbose --warnings all --fqbn $BOARD $PWD/examples/stm32/EthernetHTTPSstm32
|
||||||
- arduino-cli compile --verbose --warnings all --fqbn $BOARD $PWD/examples/EthernetMultiHTTPS
|
- stage: "Deploy"
|
||||||
before_deploy:
|
if: branch = master AND tag is present
|
||||||
- mkdir src/$ARCH
|
env: DEPLOY=1
|
||||||
- cp "$(find /tmp/ -maxdepth 1 -type d -name "arduino-sketch*" -print | head -n 1)/libraries/SSLClient/SSLClient.a" src/$ARCH/
|
script: skip
|
||||||
- cp .travis/library.properties .
|
|
||||||
- rm -rf .git
|
|
||||||
- find src/ -iname "*.c" -delete
|
|
||||||
- find src/ -iname "*.cpp" -delete
|
|
||||||
- zip -r SSLClient-$BOARD_NAME.zip .
|
|
||||||
deploy:
|
deploy:
|
||||||
provider: releases
|
provider: releases
|
||||||
api_key: $GITHUB_TOKEN
|
api_key: $GITHUB_TOKEN
|
||||||
file: "SSLClient-$BOARD_NAME.zip"
|
file: "SSLClient.zip"
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
draft: true
|
|
||||||
overwrite: true
|
|
||||||
on:
|
install:
|
||||||
tags: true
|
- curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | BINDIR=/usr/bin sudo sh
|
||||||
branch: master
|
- arduino-cli core update-index --additional-urls $ADDITIONAL_URLS
|
||||||
|
- arduino-cli core install arduino:samd -v
|
||||||
|
- arduino-cli core install $CORE -v --additional-urls $ADDITIONAL_URLS
|
||||||
|
- mkdir -p $HOME/Arduino/libraries
|
||||||
|
- rm -rf $HOME/Arduino/libraries/EthernetLarge
|
||||||
|
- git clone https://github.com/OPEnSLab-OSU/EthernetLarge.git $HOME/Arduino/libraries/EthernetLarge
|
||||||
|
- arduino-cli lib install "STM32duino STM32Ethernet"
|
||||||
|
- arduino-cli lib install "PubSubClient"
|
||||||
|
- ln -s $PWD $HOME/Arduino/libraries/.
|
||||||
|
|
||||||
|
script:
|
||||||
|
- arduino-cli compile --verbose --warnings all --fqbn $BOARD $PWD/examples/EthernetHTTPS
|
||||||
|
- arduino-cli compile --verbose --warnings all --fqbn $BOARD $PWD/examples/EthernetMultiHTTPS
|
||||||
|
- arduino-cli compile --verbose --warnings all --fqbn $BOARD $PWD/examples/EthernetMQTT
|
Loading…
Reference in a new issue