Qinghao Shi
88d5079504
EXAMPLES: update comments and fix bugs
2019-10-17 00:57:15 +01:00
Qinghao Shi
cf02be63ff
EXAMPLES: update console output format
2019-10-16 23:46:18 +01:00
Qinghao Shi
6876362689
EXAMPLES: update build_repo function
2019-10-16 18:09:36 +01:00
Qinghao Shi
3f0add7e44
EXAMPLES: update export_repos function
2019-10-16 18:06:24 +01:00
Qinghao Shi
4c5f94075f
EXAMPLES: update examples_lib.py
...
- add logging function
- update clone function
- update deploy function
- update source function
- add symlink function
2019-10-16 18:00:33 +01:00
Olli-Pekka Puolitaival
ff2778f5f6
Fix documentation
2019-09-17 15:26:06 +03:00
Olli-Pekka Puolitaival
350c0eff22
Make able to define build jobs amount when building examples
2019-09-16 13:30:24 +03:00
Olli-Pekka Puolitaival
aebda11adf
Use very verbose to see more details in case of problem
2019-08-30 09:14:06 +03:00
Olli-Pekka Puolitaival
ba26bd9cde
Python3 fixes
2019-08-16 13:51:21 +03:00
Olli-Pekka Puolitaival
aa1d16e871
Python3 fixes
2019-08-15 10:06:41 +03:00
Qinghao Shi
35eeef55a1
fix a bug where base_path was wrong
2019-05-19 00:32:39 +01:00
Qinghao Shi
3bb0a8aded
fix a bug when STDOUT has less than 5 lines
2019-05-18 23:57:23 +01:00
Qinghao Shi
48e1a56e0e
add a comment based on review
2019-05-15 23:31:58 +01:00
Qinghao Shi
71d7970fc5
fix issues base on the review
2019-05-10 17:48:15 +01:00
Qinghao Shi
b2611fb801
TEST: update python script to enable example smoke test
...
* it will check examples.json if contains 'test', 'compare_log', 'baud_rate' keys
* it will dump test_spec.json test in examples compiled successfully
2019-05-02 15:26:15 +01:00
Aleksi Klasila
8137974232
rm ["python", "-m"] from build_command
2019-04-04 10:34:23 +03:00
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
b28d0811df
Fix up subprocess calls
...
subprocess.call() does not by default return a status value.
Update the commands to add shell=True which forces a return value.
Also convert the commands to a single string rather than a list as
this plays more nicely with both linux and windows.
Also fix a spurious :
2018-11-01 13:07:16 +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
Cruz Monrreal II
f5e6f16307
Enabled the removal of a trailing slash when sourcing examples from examples.json
2018-09-26 14:21:10 -05:00
Jimmy Brisson
a9abcf1b15
Add aliases to example exporter options
2018-07-09 09:49:55 -05:00
Cruz Monrreal II
27d0255cb3
Sets module no longer needed to use set()
2018-06-04 09:21:43 -05:00
Jimmy Brisson
95c7d4d47c
Compare to unicode in example builder
2018-02-05 11:07:37 -06:00
Jimmy Brisson
cca4425af6
Python2+3: iteritems -> items
2018-02-05 11:04:36 -06:00
Shrikant Tudavekar
ccd82c24c8
Collect build artifacts disable cleanup
...
In preparation to exporter tests
2017-10-31 17:34:06 -05:00
Jimmy Brisson
299af9742d
Merge pull request #5247 from kegilbert/example-build-profile-arg
...
Add profile argument to mbed-os example build tools
2017-10-13 09:24:04 -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
Shrikant Tudavekar
cdd29b87a5
Add retry to handle git clone failure
...
more info on https://github.com/ARMmbed/mbed-os/issues/5239
2017-10-02 14:39:24 -05:00
Shrikant Tudavekar
fec2346627
add ARMC6 in supported compiler
2017-09-12 15:31:50 -05:00
Jimmy Brisson
ca0c2a8d92
Correct supported check in exporter tests
2017-08-01 09:52:57 -05:00
Brian Daniels
fd4cd43043
Enable verbose builds when running example build tests
2017-06-12 11:25:01 -05:00
Brian Daniels
3966139cd7
Allowing examples to specify which repo source to use for testing.
...
They can pick from either the mbed developer site or the GitHub
repository.
2017-05-24 11:10:49 -05:00
Brian Daniels
134d7743c3
Correctly filtering examples in test script.
...
If an example's GitHub repository contains multiple child examples, the
script was incorrectly filtering out all the child examples when
compiling and exporting. This patch now handles this case correctly.
2016-12-15 14:16:12 -06:00
Jimmy Brisson
569808578a
Enabled example exporting Filter ides by toolchains
2016-12-05 13:43:55 -06:00
Brian Daniels
f1bb3f5930
Fixing issue with target_cross_ide
2016-11-08 12:51:38 -06:00
Brian Daniels
2fe1373cf1
Fixing use of get_repo_list in update function
2016-11-08 12:38:22 -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
c231939a8d
[Exporter tests] conditional intersection for targets
2016-11-07 11:09:36 -06:00
Sarah Marsh
4e2d3c42dd
[Exporter tests] Implement filtering of targets and examples.
2016-11-07 11:09:36 -06:00
Sam Grove
79abaab02e
Merge pull request #3208 from bridadan/examples-clone-deploy
...
[example tests] Adding a clone and a deploy step to allow optimizations in CI.
2016-11-07 10:32:23 -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
76554fa8af
[Exporter tests] Capable of testing export only to IDEs that do not have build functions
2016-11-04 15:53:41 -05:00
sarahmarshy
804f27a8bd
[Export build-test] Directory traversal error
...
Change indentation level for directory traversal, so that we only move up at the end of exporting one project for all ide/target combinations.
2016-11-04 14:09:40 -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
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
045b7d412d
Minor review comments plus add new 'compile' option to examples json file.
...
Adding the new compile option allows the marking of a set of examples to
indicate whether they should be compiled or not. For the update process
examples that are not compiled will not be auto updated irrespective of
that setting.
Other changes to make return logic from some functions in update.py more
efficient and some typos in the lib file.
2016-10-25 12:37:29 +01:00
Anna Bridge
36964561b9
Review: Update example_lib.py to use rmtree rather than rm system call.
...
Update examples.json to limit TLS examples to a couple of boards and only
GCC_ARM and ARM compilers.
2016-10-18 12:30:19 +01:00