Commit Graph

24 Commits (05fc0f526319523e87ae9467b1cbc361fb755416)

Author SHA1 Message Date
alekla01 3665209df8 examples test compile optional verbose 2019-04-02 09:01:55 +03:00
Martin Kojtal 195965fd5e tools: move string description after import modules 2019-02-19 10:49:04 +00:00
Martin Kojtal c8f698ca36 tools: add license headers 2019-02-15 13:32:45 +00:00
adbridge a7c777d5c1 Make examples commands return a failure
Currently the following commands in examples.py,
do_import()
do_deploy()
do_versionning()
do_clone()

all return a success status (ie 0) irrespective of any errors
originating from their sub-functions.

This PR fixes this. Now these commands will return one of:
0 - success
1 - general failure
x - failure returned by a subprocess.call function
2018-10-31 17:40:15 +00:00
Kevin Gilbert f8fa90209e Remove -p as an argument flag for profile 2017-10-03 16:14:07 -05:00
Kevin Gilbert 310f833f52 Add profile argument to mbed-os example build tools to allow non-default build profiles to be passed in 2017-10-03 15:24:29 -05:00
Brian Daniels 119857ac77 Ignoring args parameter for functions that don't use them 2016-11-08 13:41:40 -06:00
Brian Daniels b739413526 Correcting example, toolchain, and ide filters 2016-11-08 12:37:14 -06:00
Sarah Marsh 4bfd73a661 [Exporter tests] update mbed-os in selected examples 2016-11-07 11:10:52 -06:00
Sarah Marsh 4e2d3c42dd [Exporter tests] Implement filtering of targets and examples. 2016-11-07 11:09:36 -06:00
Brian Daniels 811e2b55e6 Adding MCU and example filter options to example test CLI 2016-11-07 11:04:18 -06:00
Brian Daniels b0d556b9c4 Adding a clone and a deploy step to allow optimizations in CI.
This adds an example clone and deploy step that allows you to modify
each top level repository before pulling in the rest of the example's
dependencies. This allows us to not pull in a copy of mbed-os for each
example in CI and instead symbolic link the already cloned copy, saving
valuable time and disk space
2016-11-04 17:35:36 -05:00
Sarah Marsh 9624ccf2d5 Add boolean 'export' to examples.json.
This will determine whether the example should be exported. Additionally,
relocated export logic to examples_lib.py.
2016-11-02 10:30:10 -05:00
Sarah Marsh b9bac0516b [Exporter tests] changing variable names and respecting requirement kwargs 2016-11-01 15:03:31 -05:00
Sarah Marsh 986af0dd5e New export-build tests.
Allows command line workflow of:
mbed import
mbed export

Also revises exporter supported target checks
2016-11-01 15:03:31 -05:00
Anna Bridge bbfa954839 Make update.py test compile examples prior to updating mbed-os version.
Changes:
Refactor examples.py to add a new command line option to provide an update
tag.
Refactor examples.py to add new functionality to update the version of
mbed-os in the examples to a supplied tag.
Refactor examples.py to make cloning the example repos, updating their
mbed-os version and compiling, into library functions and move to a new
library module.
Refactor the format of the examples.json file to make it compatible with
both examples.py and update.py.
Refactor update.py so that examples are test compiled prior to updating.
Refactor update.py so that only examples tagged as auto-updatable and that
fully compile are automatically updated.
2016-10-17 16:56:28 +01:00
Brian Daniels 53ecfdb856 Adding the ability to filter examples by toolchains
This change was driven by the fact that certain
examples only support a subset of the toolchains.
2016-09-28 13:04:14 -05:00
Jimmy Brisson 3437829af1 return the number of failures from the script 2016-09-01 16:01:12 -05:00
Jimmy Brisson f983292a6b Separate the import and compile steps for better integration with Jenkins 2016-08-31 15:17:29 -05:00
Jimmy Brisson 41ec0af7aa Update Docstring 2016-08-31 13:54:41 -05:00
Jimmy Brisson 4b1dcd398c Allow filtering by target as well as by features 2016-08-31 13:40:03 -05:00
Jimmy Brisson 1f0afebbbc Allow command-line filtering of toolchains 2016-08-31 13:24:59 -05:00
Jimmy Brisson f7a1d1f749 Move to feature filter for target and toolchain detection; print passed tests 2016-08-29 14:38:16 -05:00
Jimmy Brisson 78028a9ceb Move example tests to their own folder 2016-08-29 14:01:57 -05:00