mirror of
https://github.com/thelsing/knx.git
synced 2024-12-18 19:08:18 +01:00
change cmake file for travis
This commit is contained in:
parent
d153825f2e
commit
edb9b6b526
135
.travis.yml
135
.travis.yml
@ -1,72 +1,63 @@
|
||||
matrix:
|
||||
include:
|
||||
# Test build for Linux platform
|
||||
- language: cpp
|
||||
os: linux
|
||||
addons:
|
||||
apt:
|
||||
sources:
|
||||
- ubuntu-toolchain-r-test
|
||||
packages:
|
||||
- g++-7
|
||||
env:
|
||||
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
|
||||
cache:
|
||||
directories:
|
||||
git:
|
||||
depth: false
|
||||
quiet: true
|
||||
|
||||
before_install:
|
||||
- eval "${MATRIX_EVAL}"
|
||||
|
||||
install:
|
||||
|
||||
script:
|
||||
- echo "building knx-linux"
|
||||
- cd examples/knx-linux
|
||||
- mkdir -p build
|
||||
- cd build
|
||||
- cmake ..
|
||||
- make
|
||||
- cd ../..
|
||||
- echo "building knx-linux-coupler"
|
||||
- cd knx-linux-coupler
|
||||
- mkdir -p build
|
||||
- cd build
|
||||
- cmake ..
|
||||
- make
|
||||
|
||||
# Test build for PlatformIO based projects
|
||||
- language: python
|
||||
python:
|
||||
- "3.8"
|
||||
cache:
|
||||
directories:
|
||||
- "~/.platformio"
|
||||
env:
|
||||
- PLATFORMIO_EXTRA_SCRIPTS=pre:/tmp/scripts/custom_hwids.py
|
||||
install:
|
||||
- pip install -U platformio
|
||||
- platformio update
|
||||
script:
|
||||
# PRE scripts have to be copied manually as "platformio ci does not care about it"
|
||||
- mkdir -p /tmp/scripts
|
||||
- cp examples/knx-usb/custom_hwids.py /tmp/scripts
|
||||
|
||||
# Enable verbose output of platformio
|
||||
#- platformio settings set force_verbose yes
|
||||
|
||||
- echo "-------";echo "Compiling example knx-usb";echo "--------";
|
||||
- platformio ci --lib="." --project-conf=examples/knx-usb/platformio-ci.ini examples/knx-usb/src/main.cpp
|
||||
|
||||
- echo "-------";echo "Compiling example knx-demo";echo "--------";
|
||||
- platformio ci --lib="." --project-conf=examples/knx-demo/platformio-ci.ini examples/knx-demo/knx-demo.ino
|
||||
|
||||
- echo "-------";echo "Compiling example knx-demo-coupler";echo "--------";
|
||||
- platformio ci --lib="." --project-conf=examples/knx-demo-coupler/platformio-ci.ini examples/knx-demo-coupler/knx-demo-coupler.ino
|
||||
|
||||
notifications:
|
||||
email:
|
||||
on_success: change
|
||||
on_failure: change
|
||||
matrix:
|
||||
include:
|
||||
# Test build for Linux platform
|
||||
- language: cpp
|
||||
os: linux
|
||||
addons:
|
||||
apt:
|
||||
sources:
|
||||
- ubuntu-toolchain-r-test
|
||||
packages:
|
||||
- g++-7
|
||||
env:
|
||||
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
|
||||
cache:
|
||||
directories:
|
||||
git:
|
||||
depth: false
|
||||
quiet: true
|
||||
|
||||
before_install:
|
||||
- eval "${MATRIX_EVAL}"
|
||||
|
||||
install:
|
||||
|
||||
script:
|
||||
- mkdir -p build
|
||||
- cd build
|
||||
- cmake ..
|
||||
- make
|
||||
|
||||
# Test build for PlatformIO based projects
|
||||
- language: python
|
||||
python:
|
||||
- "3.8"
|
||||
cache:
|
||||
directories:
|
||||
- "~/.platformio"
|
||||
env:
|
||||
- PLATFORMIO_EXTRA_SCRIPTS=pre:/tmp/scripts/custom_hwids.py
|
||||
install:
|
||||
- pip install -U platformio
|
||||
- platformio update
|
||||
script:
|
||||
# PRE scripts have to be copied manually as "platformio ci does not care about it"
|
||||
- mkdir -p /tmp/scripts
|
||||
- cp examples/knx-usb/custom_hwids.py /tmp/scripts
|
||||
|
||||
# Enable verbose output of platformio
|
||||
#- platformio settings set force_verbose yes
|
||||
|
||||
- echo "-------";echo "Compiling example knx-usb";echo "--------";
|
||||
- platformio ci --lib="." --project-conf=examples/knx-usb/platformio-ci.ini examples/knx-usb/src/main.cpp
|
||||
|
||||
- echo "-------";echo "Compiling example knx-demo";echo "--------";
|
||||
- platformio ci --lib="." --project-conf=examples/knx-demo/platformio-ci.ini examples/knx-demo/knx-demo.ino
|
||||
|
||||
- echo "-------";echo "Compiling example knx-demo-coupler";echo "--------";
|
||||
- platformio ci --lib="." --project-conf=examples/knx-demo-coupler/platformio-ci.ini examples/knx-demo-coupler/knx-demo-coupler.ino
|
||||
|
||||
notifications:
|
||||
email:
|
||||
on_success: change
|
||||
on_failure: change
|
||||
|
Loading…
Reference in New Issue
Block a user