Skip to content

Instantly share code, notes, and snippets.

@sticilface
Created June 14, 2016 17:28
Show Gist options
  • Save sticilface/1e03be9052742856af925ed999a25298 to your computer and use it in GitHub Desktop.
Save sticilface/1e03be9052742856af925ed999a25298 to your computer and use it in GitHub Desktop.
sudo: false
language: bash
os:
- linux
env:
global:
- BUILD_FOLDER=$TRAVIS_BUILD_DIR/build.tmp
- SKETCH_LOCATION="$TRAVIS_BUILD_DIR"
#- LIBRARIES_LOCATION="-l $HOME/Arduino/libraries"
- BOARD_TYPE="-b generic"
- FLASH_SIZE="-s 4M3M" #512K0,512K64,1M512,4M1M,4M3M
- CPU_SPEED="-f 160"
- OUTPUT_FILE="-o $TRAVIS_BUILD_DIR/firmware.bin"
#- DEBUG_PORT="--debug_port Serial"
#- DEBUG_LEVEL="--debug_level "
install:
- wget -O arduino.tar.xz https://www.arduino.cc/download.php?f=/arduino-nightly-linux64.tar.xz
- tar xf arduino.tar.xz
- mv arduino-nightly $HOME/arduino_ide
- cd $HOME/arduino_ide/hardware
- mkdir esp8266com
- cd esp8266com
- git clone https://github.com/sticilface/arduino-esp8266 esp8266
- cd esp8266/tools
- python get.py
- export PATH="$HOME/arduino_ide:$HOME/arduino_ide/hardware/esp8266com/esp8266/tools/xtensa-lx106-elf/bin:$PATH"
- which arduino
- which xtensa-lx106-elf-size
- cd $TRAVIS_BUILD_DIR
- source $HOME/arduino_ide/hardware/esp8266com/esp8266/tests/common.sh
script:
- echo -e "travis_fold:end:sketch_test_env_prepare"
- echo -e "travis_fold:start:sketch_test"
- build_sketches $HOME/arduino_ide $SKETCH_LOCATION $BUILD_FOLDER "$LIBRARIES_LOCATION $OUTPUT_FILE $BOARD_TYPE $FLASH_SIZE $CPU_SPEED $DEBUG_PORT $DEBUG_LEVEL"
- echo -e "travis_fold:end:sketch_test"
after_success:
- echo -e "travis_fold:start:size_report"
- cat size.log
- echo -e "travis_fold:end:size_report"
- ls -la $TRAVIS_BUILD_DIR/*.bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment