debug/release: Add minimal debug/release CI builds

This commit enables both a minimal DEBUG and minimal RELEASE build on
Travis-CI.

Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
Noel Eck 2018-05-07 15:15:40 -07:00
parent 37642f3b01
commit ec9143e976
3 changed files with 10 additions and 2 deletions

View File

@ -16,11 +16,17 @@ jobs:
include:
- &run-with-clang-minimal
stage: Clang 3.8 - minimal with unit tests
env: TARGET=minimal
env:
- TARGET=minimal
- CMAKE_BUILD_TYPE=Debug
before_script: docker-compose pull ${TARGET}
script:
- export CC=clang-3.8 CXX=clang++-3.8
- BUILDARCH=MOCK docker-compose run ${TARGET}
- docker-compose run ${TARGET}
- <<: *run-with-clang-minimal
env:
- TARGET=minimal
- CMAKE_BUILD_TYPE=Release
- &run-with-clang
stage: Clang 3.8
env: TARGET=python

View File

@ -16,6 +16,7 @@ services:
- BUILDCORDOVA=${BUILDCORDOVA:-OFF}
- BUILDSWIGNODE=${BUILDSWIGNODE:-OFF}
- BUILDEXAMPLES=${BUILDEXAMPLES:-OFF}
- CMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE:-Release}
- IPK=${IPK:-OFF}
- RPM=${RPM:-OFF}
- NPM=${NPM:-OFF}

View File

@ -20,5 +20,6 @@ cmake \
-DBUILDTESTS=$BUILDTESTS \
-DWERROR=$WERROR \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
-DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE \
-H. \
-Bbuild