Permalink
Browse files

travis: build examples in additional jobs

Signed-off-by: Nicolas Oliver <dario.n.oliver@intel.com>
  • Loading branch information...
dnoliver committed Oct 12, 2017
1 parent e1382ad commit c24a8f8b2097c56376890504c128c635d9dee765
Showing with 24 additions and 2 deletions.
  1. +2 −0 .travis.yml
  2. +19 −1 docker-compose.yaml
  3. +3 −1 scripts/run-cmake.sh
View
@@ -83,6 +83,8 @@ jobs:
- docker-compose run ${TARGET}
- <<: *run-additional-jobs
env: TARGET=android
- <<: *run-additional-jobs
env: TARGET=examples
- <<: *run-additional-jobs
env: TARGET=usbplat
- <<: *run-additional-jobs
View
@@ -23,7 +23,7 @@ services:
- FTDI4222=${FTDI4222:-OFF}
- IPK=${IPK:-OFF}
- RPM=${RPM:-OFF}
- ENABLEEXAMPLES=${ENABLEEXAMPLES:-ON}
- ENABLEEXAMPLES=${ENABLEEXAMPLES:-OFF}
- INSTALLGPIOTOOL=${INSTALLGPIOTOOL:-OFF}
- INSTALLTOOLS=${INSTALLTOOLS:-ON}
- CC=${CC:-clang-3.8}
@@ -46,13 +46,29 @@ services:
- BUILDDOC=ON
command: bash -c "./scripts/run-cmake.sh && ./scripts/build-doc.sh"
examples:
extends: all
environment:
- BUILDSWIG=ON
- BUILDSWIGPYTHON=ON
- BUILDSWIGNODE=ON
- BUILDSWIGJAVA=ON
- ENABLEEXAMPLES=ON
- USBPLAT=ON
- FIRMATA=ON
- ONEWIRE=ON
- IMRAA=ON
- FTDI4222=ON
command: bash -c "./scripts/run-cmake.sh && make -Cbuild"
sonar-scan:
extends: all
environment:
- BUILDSWIG=ON
- BUILDSWIGPYTHON=ON
- BUILDSWIGNODE=ON
- BUILDSWIGJAVA=ON
- ENABLEEXAMPLES=ON
- ONEWIRE=ON
- JSONPLAT=ON
- SONAR_TOKEN
@@ -94,12 +110,14 @@ services:
extends: all
environment:
- IPK=ON
- ENABLEEXAMPLES=ON
command: bash -c "./scripts/run-cmake.sh && make -Cbuild package"
rpm:
extends: all
environment:
- RPM=ON
- ENABLEEXAMPLES=ON
command: bash -c "./scripts/run-cmake.sh && make -Cbuild package"
python2:
View
@@ -1,5 +1,8 @@
#!/usr/bin/env bash
set -x
set -e
# Run cmake
cmake \
-DBUILDARCH=$BUILDARCH \
@@ -24,4 +27,3 @@ cmake \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
-H. \
-Bbuild

0 comments on commit c24a8f8

Please sign in to comment.