diff --git a/.travis.yml b/.travis.yml index ace69e1..265f96a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,41 +1,12 @@ language: cpp +cache: + directories: + - ~/arduino_ide + - ~/.arduino15/packages/ + matrix: include: - # works on Precise and Trusty - - os: linux - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - g++-4.9 - env: - - MATRIX_EVAL="CC=gcc-4.9 && CXX=g++-4.9" - - # works on Precise and Trusty - - os: linux - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - g++-5 - env: - - MATRIX_EVAL="CC=gcc-5 && CXX=g++-5" - - # works on Precise and Trusty - - os: linux - addons: - apt: - sources: - - ubuntu-toolchain-r-test - packages: - - g++-6 - env: - - MATRIX_EVAL="CC=gcc-6 && CXX=g++-6" - - # works on Precise and Trusty - os: linux addons: apt: @@ -45,15 +16,20 @@ matrix: - g++-7 env: - MATRIX_EVAL="CC=gcc-7 && CXX=g++-7" + - MODE=LINUX + - os: linux + env: + - MODE=ARDUINO before_install: - - eval "${MATRIX_EVAL}" - - - + - if [ "$MODE" = "LINUX" ]; then eval "${MATRIX_EVAL}"; fi + - if [ "$MODE" = "ARDUINO" ]; then source <(curl -SLs https://raw.githubusercontent.com/adafruit/travis-ci-arduino/master/install.sh); fi +install: + - if [ "$MODE" = "ARDUINO" ]; then arduino --install-library "WiFiManager"; fi script: - - cd knx-linux - - mkdir -p build - - cd build - - cmake .. - - make + - if [ "$MODE" = "LINUX" ]; then cd knx-linux; fi + - if [ "$MODE" = "LINUX" ]; then mkdir -p build; fi + - if [ "$MODE" = "LINUX" ]; then cd build; fi + - if [ "$MODE" = "LINUX" ]; then cmake ..; fi + - if [ "$MODE" = "LINUX" ]; then make; fi + - if [ "$MODE" = "ARDUINO" ]; then build_platform esp8266; fi diff --git a/README.md b/README.md index f01a2c1..cbcbf55 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,8 @@ +knx [![Build Status](https://travis-ci.org/thelsing/knx.svg?branch=master)](https://travis-ci.org/thelsing/knx) +=== + + + This projects provides a knx-device stack for arduino (ESP8266, SAMD21) and linux. (more are quite easy to add) It implements most of System-B specification and can be configured with ETS. The necessary knxprod-files can be generated with my [CreateKnxProd](https://github.com/thelsing/CreateKnxProd) tool. @@ -11,4 +16,4 @@ Don't forget to reset ESP8266 manually (disconnect power) after flashing. The re The SAMD21 version uses my version of the [FlashStorage](https://github.com/thelsing/FlashStorage) lib (Pull request pending). -Generated documentation can be found [here](https://knx.readthedocs.io/en/latest/). \ No newline at end of file +Generated documentation can be found [here](https://knx.readthedocs.io/en/latest/).