Add Dockerfile to create build environment for mraa Add docker-compose.yaml file to easily execute build tasks Add .dockerignore file Modify .travis.yaml file to use docker and docker-compose for building Modify package.json.cmake to run a simple load test for node.js Signed-off-by: Nicolas Oliver <dario.n.oliver@intel.com> Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
57 lines
1.2 KiB
YAML
57 lines
1.2 KiB
YAML
sudo: required
|
|
|
|
language: cpp
|
|
|
|
compiler:
|
|
- clang
|
|
- gcc
|
|
|
|
env:
|
|
- TARGET=doc
|
|
- TARGET=python2
|
|
- TARGET=python3
|
|
- TARGET=java
|
|
- TARGET=node4
|
|
- TARGET=node5
|
|
- TARGET=python2 JSONPLAT=ON
|
|
- TARGET=python3 JSONPLAT=ON
|
|
- TARGET=java JSONPLAT=ON
|
|
- TARGET=node4 JSONPLAT=ON
|
|
- TARGET=node5 JSONPLAT=ON
|
|
- TARGET=python2 BUILDARCH=MOCK
|
|
- TARGET=python3 BUILDARCH=MOCK
|
|
- TARGET=java BUILDARCH=MOCK
|
|
- TARGET=node4 BUILDARCH=MOCK
|
|
- TARGET=node5 BUILDARCH=MOCK
|
|
|
|
matrix:
|
|
exclude:
|
|
- compiler: clang
|
|
env: TARGET=java
|
|
- compiler: clang
|
|
env: TARGET=java JSONPLAT=ON
|
|
- compiler: clang
|
|
env: TARGET=java BUILDARCH=MOCK
|
|
allow_failures:
|
|
- compiler: gcc
|
|
env: TARGET=node4 JSONPLAT=ON
|
|
- compiler: clang
|
|
env: TARGET=node4 JSONPLAT=ON
|
|
- compiler: gcc
|
|
env: TARGET=node5 JSONPLAT=ON
|
|
- compiler: clang
|
|
env: TARGET=node5 JSONPLAT=ON
|
|
|
|
services:
|
|
- docker
|
|
|
|
before_script:
|
|
- if [ "$CC" == "gcc" ]; then export CC=gcc-4.8; fi
|
|
- if [ "$CXX" == "g++" ]; then export CXX=g++-4.8; fi
|
|
- if [ "$CC" == "clang" ]; then export CC=clang-3.8; fi
|
|
- if [ "$CXX" == "clang++" ]; then export CXX=clang++-3.8; fi
|
|
- docker-compose build ${TARGET}
|
|
|
|
script:
|
|
- docker-compose run ${TARGET}
|