Coder Social home page Coder Social logo

ci_iot's Introduction

CI for IoT

This is the repository that gathers the material for the small talk and demo called: Continuous integration for C/C++ embedded devices with Jenkins, Docker and Conan

This example is used to show how cross-building and CI can be achieved using Conan to manage C/C++ dependencies in your projects.

It contains the Wiring Pi library dependency packaged with a conanfile.py ready to be cross-compiled. The profile used for that purpose is the file win_to_rpi.

The local toolchain to cross-build from Windows to armv7hf can be found in the GNU toolchains page: raspberry-gcc6.3.0.exe

Jenkins & Docker

The blink repository provides a Jenkinsfile that can be used to configure a Jenkins Multibranch job that will build the application inside the conanio/gcc6-amrv7hf Docker container configured with the cross-building toolchain for Raspberry Pi.

Demo steps

1.- Build WiringPi cross-building for armv7hf: $ conan create wiringpi conan/stable -pr win_to_rpi

2.- Upload WiringPi package to Artifactory: $ conan upload wiringpi/2.46@conan/stable -all -r artifactory_local

3.- Make changes in the Blink app and commit them: cd blink && git add . && git commit -m "faster!"

4.- Jenkins Multibranch job will start, get the latest change from blink, cross-build the application and upload it to Artifactory.

LICENSE

Materials for this talk/demo are licensed under MIT except for the WiringPi library that contains its own one inside its folder.

ci_iot's People

Contributors

danimtb avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.