Commit Graph

203 Commits (eb32b25c8abb37f0aab505451074448e7e420517)

Author SHA1 Message Date
Martin Kojtal 5eeced1c54 travis: ignore spdx reports
Do not force red status for PRs due to SPDX missing (license must be there). We will
add better SPDX checks later (more work required to enable these for 3rd party code).
2020-10-19 16:20:26 +02:00
Hugues Kamba 4ce6c8ac62 Scancode: Fix false positive reported by scancode output analyser script
ScanCode can possibly return many licenses found for a single file scanned.
This commit ensures that the file is not reported as lacking a permissive license
if at least one license found in it is permissive.
Previously the script was reporting an issue if it found at least one license
in a file that was not permissive.

Additionally catch more errors and provide specific details about failures.
Provide unitest.
2020-10-15 17:33:56 +01:00
Martin Kojtal b3f4d3b5f4
Merge pull request #13619 from 0xc0170/fix_travis_status_token
Travis: remove status functionality
2020-10-15 15:17:03 +01:00
Saheer Babu eeb61ec4e7
adapting to new s3 bucket location in travis.yml 2020-10-01 18:16:56 +01:00
Martin Kojtal 96740b6bb3 travis: count always with true, status return later 2020-09-30 10:32:57 +01:00
Martin Kojtal 85233e066a travis: fix license ok, return true 2020-09-23 16:04:49 +01:00
Martin Kojtal 14714a8055 Travis: remove status functionality
Unfortunately, we need to remove status functionality as it exposes an information
it should rather not. There is no other way we can do it in the pull request coming
from forks (most of our PRs are from forks). It is better if we use pass/failure what
Travis provides. The information are in the logs. It should always print the status info at
the very end. A test should have "echo Failed with a reason...."
2020-09-17 16:40:41 +01:00
Anna Bridge fdab61d040
Merge pull request #13586 from 0xc0170/fix_travis_new_files
travis: license check for new files
2020-09-17 11:14:39 +01:00
Martin Kojtal 36bb124532 travis: license check for new files
Fail if new file does not contain SPDX identifier. We only checked for changed files,
and warn if any found. This is not sufficient because new files should follow our license guide.

This fixes the problem.
2020-09-15 12:34:00 +01:00
Rajkumar Kanagaraj 2bc7bb7a52 - Remove components reference from travis
- update readme
2020-09-11 14:33:18 +01:00
Hugues Kamba 834e530abd CMSIS: Restructure ported CMSIS_5
See docs/adr/0001_cmsis_component_source_structure_recommendations.md
For details information.
2020-09-01 15:55:13 +01:00
Martin Kojtal 08ef04d027
Merge pull request #13468 from urutva/add-ccache-to-travis
Add ccache to travis
2020-08-24 08:47:27 +01:00
Devaraj Ranganna fef4454359 ci: Enable `ccache` in Travis
Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
2020-08-21 14:17:13 +01:00
Lingkai Dong 15914d9354 .travis.yml: apply ignore list to spell checker 2020-08-20 17:23:19 +01:00
Lingkai Dong e00d6feb37 Rename .astyleignore -> .codecheckignore for spell check 2020-08-20 17:16:02 +01:00
Martin Kojtal ead1cec065
Merge pull request #13349 from Patater/reject-tool-changes
travis: Reject changes to tools
2020-08-11 09:39:28 +01:00
Ashok Rao a36718d5fb Fixing Travis failure 2020-08-05 16:57:50 +01:00
Anna Bridge 1d362c8a7a
Merge pull request #13371 from gpsimenos/gp-lwip-restruct
Restructure lwipstack directory
2020-08-05 11:56:12 +01:00
Jaeden Amero a18a7391a5 travis: Reject changes to tools
As part of freezing the current tools, reject any changes to tools that
would require a re-release of the tools for the online compiler. This is
to free up our effort on existing tool releases which are very error
prone, time consuming, and labor intensive, so we can focus on
developing a far more maintainable set of tools.

As the online compiler contains a copy of the whole mbed-os folder, it
is not clear which parts of mbed-os are actually used. This change
estimates the dependency between the online compiler, online IDE, and
Mbed OS by searching for "from tools" in Python code in the os.mbed.com
repo
(https://github.com/ARMmbed/os.mbed.com/search?q=%22from+tools%22&unscoped_q=%22from+tools%22)

For further context and explanation on why we've frozen the legacy
tools, please see the blog post at
https://os.mbed.com/blog/entry/Introducing-the-new-Mbed-Tools/
2020-08-04 17:32:13 +01:00
George Psimenos bcb5c10d62 Update lwipstack paths 2020-07-31 10:19:52 +01:00
George Psimenos 973c1dc2ff Move drivers unit tests 2020-07-31 10:04:36 +01:00
George Psimenos fe7ae8a50f Remove deprecated local unit tests 2020-07-28 09:17:19 +01:00
George Psimenos d480fab08b CI & local unit test fixes 2020-07-28 09:17:19 +01:00
George Psimenos 76f37fb2bc Restructure events directory & move tests 2020-07-28 09:17:19 +01:00
Jaeden Amero 5ea51596ac travis: Fix spelling errors 2020-07-24 15:29:40 +01:00
Jaeden Amero fc146cd641 travis: Remove trailing whitespace 2020-07-24 15:29:40 +01:00
Rajkumar Kanagaraj ea6a7ddbaa Refactor features/netsocket and move to connectivity/netsocket 2020-07-23 06:15:09 -07:00
Lingkai Dong 88192530d7 .travis.yml: delete cellular drivers during no-RTOS test 2020-07-22 11:12:02 +01:00
Lingkai Dong 2b24a7a31e Update paths to cellular framework 2020-07-22 11:06:23 +01:00
Martin Kojtal 7592d702b2
Merge pull request #13284 from LDong-Arm/move_ppp
Refactor PPP library
2020-07-21 14:12:05 +01:00
Martin Kojtal 0d8342e7b9 Travis: fix scandcode failure
This is workaround for https://github.com/ARMmbed/mbed-os/issues/13322. We can remove
this line once they fix the dependency.
2020-07-21 10:57:14 +01:00
Lingkai Dong ac7389de58 .travis.yml: exclude ppp from no-RTOS test 2020-07-17 15:30:53 +01:00
Anna Bridge 640da338f9
Merge pull request #13229 from jeromecoutant/PR_TARGET2
STM32 custom target: create MCU_STM32xx for each family
2020-07-17 10:55:43 +01:00
Rajkumar Kanagaraj 3f080dfd65 update the path in license, readme markdown, astyleignore 2020-07-13 05:24:45 -07:00
jeromecoutant 686d4c797e TRAVIS update for non rtos compilation
travis needs to compile a target which doesn't support FLASHIAP
2020-07-09 13:48:44 +02:00
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