Commit Graph

168 Commits (fe2fb4890738ec6a07571ec6909d26e30983501b)

Author SHA1 Message Date
jeromecoutant dd46dfccb2 STM32F4 code cleaning 2020-05-14 13:55:22 +02:00
Veijo Pesonen 8760a56907 astyle: stops whitelisting .sh-files 2020-05-05 14:24:44 +03:00
Devaraj Ranganna fd74d678a7 psa: Remove PSA secure binary building tools
The PSA-implementing secure binary is not built using Mbed OS build
tools anymore. Instead, the TrustedFirmware-M (TF-M) build system is
used to produce the secure binary. As such, we remove PSA related hooks
from the build system, remove PSA related scripts from tools/test
folder, and also remove the psa-autogen job from travis which was
running the now unecessary and removed generate_partition_code.py.

Remove the ability to generate new PSA binaries in the old manner, where
Mbed OS implements PSA. We don't yet remove any PSA binaries or break
the currently checked-in Mbed-implemented PSA support. PSA targets
integrated in the old manner will continue working at this point.

Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
Signed-off-by: Jaeden Amero <jaeden.amero@arm.com>
2020-04-27 09:51:14 +01:00
Evelyne Donnaes d1882e42e3 Fixed travis-ci/events 2020-03-16 16:55:21 +00:00
Martin Kojtal 92711bdcde travis: fix scancode status if all OK 2020-03-03 14:27:52 +00:00
Martin Kojtal 3c441eb763 travis: scancode check log instead
Fix to properly evaluate the findings - read the logs to get how many files there are reported.
2020-02-28 09:54:40 +00:00
Martin Kojtal 9266ed10ae travis: ignore grep return value for scancode
The file is not always present in changed files, thus we need to just ignore the
return status.
2020-02-25 07:32:46 +00:00
Martin Kojtal a0248c17ef scancode: print files if any found 2020-02-24 12:03:01 +00:00
Martin Kojtal 1b4ad98787 scancode: add logger and parse it to get count 2020-02-24 12:03:01 +00:00
Martin Kojtal adaa2b6a0a travis: license check does not fail but report issues
Master branch contains lot of missing SPDX identifiers, we will clean them up but this will take some time. In the meantime, we should not increase the license missing files. Each PR will report if there is no license issue or positive number reported as Github status. Travis won't fail if there are issues. This will highlight the issues that anyone can fix.

As soon as master is clean, we can fix set_status and revert part of this commit.
2020-02-24 12:02:37 +00:00
Martin Kojtal db989ba65a travis: exclude one file from scanning licenses
tools/test/toolchains/api_test.py is problematic as it contains code
for checking tools. This contains license code in strings - scancode things these are the licenses in the file.

We skip it checking in travis
2020-02-20 15:34:40 +00:00
Martin Kojtal 0995ece3b2 Add scancode evaluate script
The goal: check license offenders in pull request

This is similar to what astyle does in Travis. We get list of files being changed. Because scancode does not support list of files being scanned but rather a file or directory, we copy files to SCANCODE folder. Execute scancode license check in this folder and check for offenders.

The rules there are: code files must have a license and SDPX identifier. If they don't, we print these and ask for review.

It functions nicely there is just one workaround needed. SPDX is not always 100 percent correctly found, therefore we recheck file if no SPDX manually in the script. This proves to remove false positives.
2020-02-20 09:49:50 +00:00
George Psimenos df5baf6031 USB public APIs cleanup (#11034)
The contents of the usb directory were moved to appropriate locations and the usb directory removed.

* Public USB headers moved under drivers/
* Internal USB headers moved under drivers/internal/
* USB Source code moved under drivers/source/usb/
* Moved usb/device/hal/ under hal/usb/
* Moved usb/device/USBPhy/ under hal/usb/
* Merged usb/device/targets/ into targets/
* Separated public and private USB API documentation under Doxygen groups drivers-public-api and drivers-internal-api.
2019-08-02 12:23:47 +01:00
Hugues Kamba bfa1b4dd84 Drivers/Events/RTOS Public and internal APIs cleanup (#10955)
Separate drivers, events, and rtos internal APIs from public APIs.

* Move source files to source subdirs
* Move internal headers to internal subdirs
* Add Doxygen comments for documenting internal and public APIs
* Remove source code from header files in order to remove include pre-processor directives
that included header files not directly used by said header files
* Explicitly include header files instead of implicit inclusions via third-party header files.

Release Notes

This will break user code that was using an internal API as the internal header files have been moved.
This will only break if the user was including the header file using a namespace (i.e #include "foo/bar.h" instead of #include "bar.h"
2019-08-02 12:23:47 +01:00
Qinghao Shi 2f6078d829 TRAVIS: turn off upload python test code coverage 2019-05-02 14:31:49 +01:00
Cruz Monrreal II 17dcbd1dc0 Made typo to unblock final check 2019-04-11 11:10:30 -05:00
Cruz Monrreal II 260c97a116 Cleaned up LittleFS and Event Queue tests.
Added {} around each variable.
Ported python invocations for simple math opts to coreutil commands
2019-04-08 10:45:07 -05:00
Cruz Monrreal II 397ee3074a Removed nearly all usage of 'apt-get'.
Primary cause of false Travis CI failures was running 'apt-get update'.
Refactored all instances where this was needed with manually fetching and installing dependencies in S3 instace.

This also includes GCC installation.
2019-04-08 10:45:07 -05:00
Cruz Monrreal II 5f40538c59 Re-enabled PR status reporting.
Added external bash file to source functions from
2019-04-08 10:45:07 -05:00
Cruz Monrreal II f9f9b60d7e Grouped jobs into build stages 2019-04-08 10:45:07 -05:00
Cruz Monrreal II c703ad7cfb Removed status reporting.
Re-enabled in later commit.
2019-04-08 10:39:38 -05:00
Cruz Monrreal II d0f4dc4d20 Changed default language to shell.
Not every VM needs the setup overhead that 'language: python' was providing
2019-04-08 10:39:38 -05:00
Cruz Monrreal II‰ 6c9c7f1483 Updated AWS url for astyle.
The original one is no longer appropriate
2019-03-29 12:18:39 -05:00
Cruz Monrreal II 034096dcd0 Updated astyle to work with updated .astyleignore file
fgrep === grep -F
-F treats lines as fixed strings (aka, the '^' isn't expanded)
2019-03-25 19:43:34 -05:00
Oren Cohen f234a1dc5b
Unify PSA code generators 2019-03-03 21:15:49 +02:00
Russ Butler b7eb7820e3 Remove the USB directory from mbed 2 travis
Don't include the USB directory when testing mbed 2 on travis.
2019-02-22 10:52:34 -06:00
Michael Schwarcz 4a45c16a21 Update .travis.yml psa_autogen job with TF-M code generation tool 2019-02-19 15:19:07 +02:00
Michael Schwarcz 516af50cb7 Consolidating tools/tfm and tools/spm into tools/psa 2019-02-19 15:19:06 +02:00
Cruz Monrreal II 861816c20b Enable xenail dist for only Py37 job
Other jobs will follow with other PR
2019-01-28 13:54:28 -06:00
Cruz Monrreal II d582451469 Enabled Py3.{5,6,7} in Travis CI 2019-01-28 13:02:37 -06:00
Cruz Monrreal II e28bf5ae11 Replaced '|' with '>' (affects how newlines are parsed) 2019-01-24 16:56:05 -06:00
Cruz Monrreal II 50a99a0572 Updated license_check to work a bit better across line boundries.
Swapped out 'git grep' for 'grep' since it can take in a --max-count flag.
The license _header_ will always be at the top.

Also enabled output so that PR authors can know what the problem files are.
2019-01-24 16:14:50 -06:00
Cruz Monrreal II‰ 31ab61ed80 Fix for license check job.
Somehow, having the '!' before a single command in a single line parses out the '!'.
2019-01-24 16:14:50 -06:00
Martin Kojtal cf75dc4b43
Merge pull request #9286 from alekla01/alekla01-include_check-patch-1
travis: Add include_check job
2019-01-22 09:33:20 +01:00
Aleksi Klasila fc41ea90d2 Add Travis include mbed.h check 2019-01-21 16:47:44 +02:00
Cruz Monrreal II e5fecaf899 Shuffled around version checks to be more useful in case of failure 2019-01-17 12:39:52 -06:00
Cruz Monrreal II 2d23e4c6f0 Added specific versions of Travis-only modules
Use requirements.txt to install specific versions of Travis CI python modules.
2019-01-17 12:39:52 -06:00
Martin Kojtal 32c9c3ac46
Merge pull request #8970 from kegilbert/spell-checker-travisjob
Add doxygen spellcheck job to Travis
2019-01-16 09:30:46 +01:00
Cruz Monrreal 41ecde9c30
Merge pull request #9371 from 0xc0170/test_travis_master
travis: set hypothesis to v3.88
2019-01-14 10:50:42 -06:00
Martin Kojtal be9f9f7610 travis: set hypothesis to 3.88 version
Update to v4.x breaks tools, will need to be addressed separately.
2019-01-14 16:00:36 +00:00
kegilbert 70b9b753db Add doxygen spellcheck jobs to Travis
Currently tests
    - drivers
    - platform
    - rtos
    - events
    - features/netsocket
2019-01-11 10:22:15 -06:00
Cruz Monrreal II 84469e1b6f Corrected simplified astyle job behavior when base branch is not master
Consolidated efforts from PR #9336.

Previous job's env vars would not be populated correctly if the base branch of a PR was not master.
Corected by pulling remaining respository information to perform comparison between read-only instance of PR and base branch.
2019-01-10 22:28:51 -06:00
Martin Kojtal 3305565164 travis: add keys for ubuntu - workaround 2019-01-08 13:29:13 +00:00
Oren Cohen 05f4a1867f Fix travis astyle usage of .astyleignore 2019-01-06 14:23:22 +02:00
Cruz Monrreal II 2ef6fe314f Add back statements adding ppa repos... 2019-01-04 10:21:17 -06:00
Cruz Monrreal II fd5607f914 Skip files that were deleted 2019-01-03 18:49:26 -06:00
Cruz Monrreal II af4af430a2 Simplified astyle travis test to be easier to reason about 2019-01-03 18:49:26 -06:00
Olli-Pekka Puolitaival bfeab27e4a More static place for astyle 2018-12-28 14:38:34 +02:00
Martin Kojtal e3b03e0404
Merge pull request #9055 from 0xc0170/dev_travis_astyle_https
travis: use https for fetching astyle package
2018-12-12 14:46:51 +01:00
Martin Kojtal 7c5cffb78a
Merge pull request #9047 from 0xc0170/dev_travis_license
travis: add license
2018-12-12 14:46:32 +01:00