Added an additional job to the CI matrix which does a minimal mraa build
(only C) which can run and pass/fail quickly.
Signed-off-by: Noel Eck <noel.eck@intel.com>
* Use docker images from docker hub instead of building them on Travis
* Fix doxygen warnings for C/C++ Documentation
* Fix examples inclusion in documentation
* Modify Travis build matrix to include stages and additional jobs
* Update doxygen2jsdoc submodule
* Add doxyport submodule
* Generate documentation for each language in Travis
* Add sonar.java.binaries to sonar-scan.sh
Signed-off-by: Nicolas Oliver <dario.n.oliver@intel.com>
Prevent execution on non configured env & add sonar target to allowed failures
in travis
Signed-off-by: Nicolas Oliver <dario.n.oliver@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This adds Travis and Docker configurations for automated scans,
both for master branch and internal PRs.
External PRs won't be checked due to security concerns
(and Travis limitation related to that) - GH and SonarCloud tokens
are not propagated to those.
An organization and project must be created in SonarCloud for reporting,
as well as a technical GH user with mraa repo commit permission, to set
PR statuses in the "checks" section.
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com>
We were incorrectly using clang all the time, overriding gcc.
This also brings newer version of docker-compose.
Signed-off-by: Nicolas Oliver <dario.n.oliver@intel.com>
Signed-off-by: Alex Tereschenko <alext.mkrs@gmail.com>
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>
Update Travis to use the latest version of Ubuntu: 14.04.3 Trusty Tahr.
- Fix issue where Node v0.10 did not get installed, therefore builds
would fail. In addition, don't hardcode the path to Node v0.10.36 as
there have since been updates to v0.10.
- Fix issue where CMake cannot find the PythonLibs folder, fixed via
https://github.com/travis-ci/travis-ci/issues/5326
- Ensure that we have the Python2 development headers
Signed-off-by: Jamie Tanna <jamie@jamietanna.co.uk>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
The MRAA clang build was getting overridden with gcc.
This commit allows MRAA to build with clang and adds nodejs
0.10 to the build matrix. Note, this means 8 builds
(2 compilers x 4 versions of nodejs).
* Added compiler directive for clang/gcc.
* Added build for node010.
* Added make install to cover the MRAA install.
Signed-off-by: Noel Eck <noel.eck@intel.com>
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This does now mean that modules won't go to /usr/local with the default prefix
but may instead try to install in /usr/lib. However if using nvm they should go
to the right place as long as NODE_ROOT_DIR is set correctly. This commit
changes NODE_ROOT_DIR to actually refer to the root directory of node rather
than the include dir which is what FindNodejs gets
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>