From 35941a540f020925c4f086d1eb32f410352d447c Mon Sep 17 00:00:00 2001 From: Christian Fetzer Date: Sat, 17 Mar 2018 18:29:55 +0100 Subject: [PATCH] project: Add Travis CI configuration Doxygen uses the README.md as generated mainpage but fails with image links. Therefore for the moment the status badges are not clickable. --- .travis.yml | 44 ++++++++++++++++++++++++++++++++++++++++++++ README.md | 4 ++++ 2 files changed, 48 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..f2f1017 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,44 @@ +jobs: + include: + - language: cpp + before_install: + - pip install --user cpp-coveralls + addons: + apt: + sources: + - ubuntu-toolchain-r-test + packages: + - cmake + - doxygen + - g++-6 + - ninja-build + script: + - mkdir build && cd build + - CXX=/usr/bin/g++-6 CC=/usr/bin/gcc-6 + cmake -DCMAKE_BUILD_TYPE=Coverage -G Ninja .. + - cmake --build . + - cmake --build . --target test + - cmake --build . --target dox + after_success: + - coveralls -r $TRAVIS_BUILD_DIR -b $TRAVIS_BUILD_DIR/build + --gcov '/usr/bin/gcov-6' --gcov-options '\-lp' + -i lib -e target + - language: cpp + addons: + apt: + packages: + - avr-libc + - cmake + - ninja-build + script: + - mkdir build && cd build + - cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/avr/generic-gcc-avr.cmake + -DBUILD_DOCUMENTATION=OFF + -DTARGET_CONFIGURATION=arduino + -DAVR_MCU=atmega328p + -G Ninja .. + - cmake --build . + - language: python + python: 3.6 + install: pip install tox + script: cd tools && tox diff --git a/README.md b/README.md index 9dceaad..f001f5c 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ atMETEO - An ATmega based weather station ========================================= + +[![Build Status](https://travis-ci.org/fetzerch/atMETEO.svg?branch=master)](https://travis-ci.org/fetzerch/atMETEO) +[![Coverage Status](https://coveralls.io/repos/github/fetzerch/atMETEO/badge.svg)](https://coveralls.io/github/fetzerch/atMETEO) + As its name implies *atMETEO* is a project for collecting and measuring weather related data from different sensors. The data is being collected by an ATmega