upm/docker-compose.yaml
Nicolas Oliver c402fbb5e8 .travis.yaml,docker-compose.yaml: add examples building to the matrix
Prevent building examples on every job

Signed-off-by: Nicolas Oliver <dario.n.oliver@intel.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
2017-06-12 21:16:59 -07:00

82 lines
1.4 KiB
YAML

version: '2'
services:
ubuntu:
image: ubuntu:16.04
command: bash
environment:
- http_proxy
- https_proxy
- no_proxy
main:
build:
context: .
dockerfile: Dockerfile
args:
- http_proxy
- https_proxy
- no_proxy
- BUILDDOC=OFF
- BUILDSWIGPYTHON=OFF
- BUILDSWIGJAVA=OFF
- BUILDSWIGNODE=OFF
- BUILDEXAMPLES=OFF
- IPK=OFF
- RPM=OFF
- NPM=OFF
- BUILDTESTS=ON
- CC=clang-3.8
- CXX=clang++-3.8
- NODE_VERSION=v4.1.2
- WERROR=ON
environment:
- http_proxy
- https_proxy
- no_proxy
doc:
extends: main
build:
args:
- BUILDDOC=ON
command: make doc
examples:
extends: main
build:
args:
- BUILDEXAMPLES=ON
command: bash -c "make $$(make help | grep example | sed 's/... //' | tr '\n' ' ')"
python:
extends: main
build:
args:
- BUILDSWIGPYTHON=ON
command: bash -c "make"
java:
extends: main
build:
args:
- BUILDSWIGJAVA=ON
- CC=gcc-4.8
- CXX=g++-4.8
command: bash -c "make"
node4:
extends: main
build:
args:
- BUILDSWIGNODE=ON
- NODE_VERSION=v4.1.2
command: bash -c "make"
node5:
extends: node4
build:
args:
- NODE_VERSION=v5.12.0