From 63c3b4bc69f103a590c17d1a96e2cf79b723d3c3 Mon Sep 17 00:00:00 2001 From: Noel Eck Date: Tue, 13 Mar 2018 15:08:51 -0700 Subject: [PATCH] travis-ci: Added minimal travis job Added an additional job to the CI matrix which does a minimal UPM build (only C, C++, and unit tests) which can run and pass/fail quickly. Signed-off-by: Noel Eck --- .travis.yml | 7 +++++++ docker-compose.yaml | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/.travis.yml b/.travis.yml index 6c8586e8..b23901e3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,6 +14,13 @@ jobs: allow_failures: - env: TARGET=ipk include: + - &run-with-clang-minimal + stage: Clang 3.8 - minimal with unit tests + env: TARGET=minimal + before_script: docker-compose pull ${TARGET} + script: + - export CC=clang-3.8 CXX=clang++-3.8 + - BUILDARCH=MOCK docker-compose run ${TARGET} - &run-with-clang stage: Clang 3.8 env: TARGET=python diff --git a/docker-compose.yaml b/docker-compose.yaml index 0db96cc2..2537b6d2 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -30,6 +30,12 @@ services: extends: base image: inteliotdevkit/upm-all + minimal: + extends: base + environment: + - BUILDFTI=OFF + command: bash -c "./scripts/run-cmake.sh && cd build && make && ctest -R unit --output-on-failure" + doc: extends: all environment: