2019-06-01 23:37:52 +02:00
|
|
|
language: cpp
|
|
|
|
|
2019-06-02 00:42:38 +02:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- ~/arduino_ide
|
|
|
|
- ~/.arduino15/packages/
|
|
|
|
|
2019-06-01 23:53:14 +02:00
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- os: linux
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
sources:
|
|
|
|
- ubuntu-toolchain-r-test
|
|
|
|
packages:
|
|
|
|
- g++-7
|
|
|
|
env:
|
2019-06-02 00:54:09 +02:00
|
|
|
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
|
2019-06-02 00:29:12 +02:00
|
|
|
- MODE=LINUX
|
|
|
|
- os: linux
|
|
|
|
env:
|
|
|
|
- MODE=ARDUINO
|
2019-06-01 23:53:14 +02:00
|
|
|
|
|
|
|
before_install:
|
2019-06-02 00:54:09 +02:00
|
|
|
- if [ "$MODE" = "LINUX" ]; then eval "${MATRIX_EVAL}"; fi
|
2019-06-02 00:42:38 +02:00
|
|
|
- if [ "$MODE" = "ARDUINO" ]; then source <(curl -SLs https://raw.githubusercontent.com/adafruit/travis-ci-arduino/master/install.sh); fi
|
2019-06-02 00:54:09 +02:00
|
|
|
install:
|
|
|
|
- if [ "$MODE" = "ARDUINO" ]; then arduino --install-library "WiFiManager"; fi
|
2019-06-01 23:37:52 +02:00
|
|
|
script:
|
2019-06-02 00:29:12 +02:00
|
|
|
- if [ "$MODE" = "LINUX" ]; then cd knx-linux; fi
|
2019-06-02 00:31:12 +02:00
|
|
|
- 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
|
2019-06-02 00:42:38 +02:00
|
|
|
- if [ "$MODE" = "ARDUINO" ]; then build_platform esp8266; fi
|