From c18bb56e6100177cfa0bef3c90708efb9d7a071d Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Fri, 26 Feb 2016 16:40:05 +0300 Subject: [PATCH] Add travis CI --- .travis.yml | 43 +++++++++++++++++++++++++++++++++++++++++ Makefile | 2 -- Makefile.local.template | 3 --- 3 files changed, 43 insertions(+), 5 deletions(-) create mode 100644 .travis.yml delete mode 100644 Makefile.local.template diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..e948be250 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,43 @@ +sudo: false +language: bash +os: + - linux + +script: + # Download Arduino IDE + - 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 + # Download ESP8266 Arduino core + - cd $HOME/arduino_ide/hardware + - mkdir esp8266com + - cd esp8266com + - git clone https://github.com/esp8266/Arduino.git esp8266 + - cd esp8266 + - export ESP8266_ARDUINO_DIR="$PWD" + # Download toolchain and esptool + - cd tools + - python get.py + - export PATH="$PATH:$PWD/xtensa-lx106-elf/bin" + # Build axTLS + - cd $TRAVIS_BUILD_DIR + - make + # Copy the library into Arduino core + - cp bin/libaxtls.a $ESP8266_ARDUINO_DIR/tools/sdk/lib/libaxtls.a + # Try building examples in ESP8266WiFi library from the ESP8266 Arduino core + - /sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_1.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :1 -ac -screen 0 1280x1024x16 + - sleep 3 + - export DISPLAY=:1.0 + - export PATH="$HOME/arduino_ide:$PATH" + - which arduino + - cd $ESP8266_ARDUINO_DIR + - source tests/common.sh + - arduino --board esp8266com:esp8266:generic --save-prefs + - arduino --get-pref sketchbook.path + - build_sketches arduino $ESP8266_ARDUINO_DIR/libraries/ESP8266WiFi/examples/HTTPSRequest + # Feel free to add more test cases (for other environments) here + +notifications: + email: + on_success: change + on_failure: change diff --git a/Makefile b/Makefile index 2f9d349bf..5b3a9b2d0 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,3 @@ -include Makefile.local - TOOLCHAIN_PREFIX := xtensa-lx106-elf- CC := $(TOOLCHAIN_PREFIX)gcc AR := $(TOOLCHAIN_PREFIX)ar diff --git a/Makefile.local.template b/Makefile.local.template deleted file mode 100644 index 937027f99..000000000 --- a/Makefile.local.template +++ /dev/null @@ -1,3 +0,0 @@ -# Set this to SDK path and save as Makefile.local -SDK_BASE := $(HOME)/esp8266/sdk -