Mistake on this page?
Report an issue in GitHub or email us

Continuous integration (CI) testing

Continuous integration (CI) testing is an integral part of the Mbed OS contribution workflow. CI testing refers mainly to automatic testing for pull requests.

Travis CI

Mbed OS uses Travis CI as the primary automatic testing and checking run environment.

Travis configuration is located in the .travis.yml file in the Mbed OS root directory. Mbed OS uses public Travis, so test results and documentation are publicly available.

Tests

  • continuous-integration/travis-ci/pr - Travis runs main.
  • travis-ci/astyle - Checks code style using astyle.
  • travis-ci/docs - Doxygen and naming checks:
    • Asserts the Doxygen build produces no warnings.
    • Asserts all binary libraries are named correctly.
    • Asserts all assembler files are named correctly.
  • travis-ci/doxy-spellcheck - Checks Doxygen comments for spelling errors. Runs on header files in:
    • Drivers.
    • Platform.
    • RTOS.
    • Events.
    • Features/netsocket.
  • travis-ci/events - Checks that Mbed OS compiles and run events tests.
  • travis-ci/gitattributestest - Checks there are no changes after clone. This checks that .gitattributes is used correctly.
  • travis-ci/licence_check - Checks that there is only a permissive license in the files, including SPDX identifier.
  • travis-ci/littlefs - Tests littlefs without embedded hardware.
  • travis-ci/tools-py2.7 - Runs Python tools tests with Python 2.7.
  • travis-ci/psa-autogen - Runs PSA SPM code generator.
    • Asserts that all PSA manifests in the tree are in correct form.
    • Asserts that no changes need to be made.

Jenkins

We use Jenkins as an internal testing and checking environment. We execute tests that have special requirements for the execution enviroment in our internal Jenkins. In most cases, we publish test logs.

How it works:

  • Jenkins uses a scripted pipeline syntax.
  • Jenkins scripts are not publicly available. There is a Jenkinsfile in the Mbed OS root folder, but that is just a trigger for tests.
  • Jenkins selects required tests dynamically based on the code changes. For example, no tests execute if only markdown (.md) files change.
  • Jenkins first runs a small number of tests to provide fast feedback, and then it runs additional tests.

Tests

  • continuous-integration/jenkins/pr-head - Jenkins main pipeline script execution status.
  • jenkins-ci/build-ARM - Builds Mbed OS and examples with the ARM compiler. Related commands:
    • mbed test --compile -t <toolchain> -m <target>.
    • python -u mbed-os/tools/test/examples/examples.py compile <toolchain> --mcu <target>.
  • jenkins-ci/build-GCC_ARM - Builds Mbed OS and examples with GCC_ARM.
  • jenkins-ci/build-IAR - Builds Mbed OS and examples with IAR.
  • jenkins-ci/cloud-client-test - Tests the change with mbed-cloud-client using the mbed-cloud-client-example.
  • jenkins-ci/dynamic-memory-usage - Reports dynamic memory use compared to the master branch.
  • jenkins-ci/exporter - Exports and builds exported code. Related commands:
    • python -u mbed-os/tools/test/examples/examples.py export <exporter> --mcu <target>.
  • jenkins-ci/greentea-test - Runs greentea tests.
  • jenkins-ci/mbed2-build-ARM - Builds Mbed OS 2 with the ARM compiler. Related commands:
    • python tools/build_release.py -p <target> -t <toolchain>.
  • jenkins-ci/mbed2-build-GCC_ARM - Builds Mbed OS 2 with GCC_ARM.
  • jenkins-ci/mbed2-build-IAR - Builds Mbed OS 2 with IAR.
  • jenkins-ci/unittests - Runs unit tests.
  • tools-test-linux - Tests tools work on Linux.
  • tools-test-mac - Tests tools work on macOS.
  • tools-test-windows - Tests tools work on Windows.
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.