Commit Graph

233 Commits (8902a0c866022a64ee4ae3c34aba51e39ff3a981)

Author SHA1 Message Date
Martin Kojtal be9850be53
Merge pull request #14701 from donatieng/utf-8-check
Add Travis test to make sure text files are UTF-8 encoded
2021-06-02 15:49:14 +02:00
Donatien Garnier eac5956407 Add Travis test to detect any non-UTF-8-encoded text 2021-06-02 12:13:01 +01:00
Lingkai Dong e31f2bb781 Travis: Do not ignore deleted frozen files
The filter `--diff-filter=d' causes deleted files to be ignored from
the frozen tools check. But there is no reason for this, as deleting
a file can break compatibility with the legacy tools.
2021-05-26 14:38:23 +01:00
Lingkai Dong 4d09e47c8f Travis: Fix frozen tools check never failing
Having recently moved the frozen tools check to a standalone stage
at the end, we need to fetch the base branch so make comparison
work. Travis environments are not shared across different stages.

Without the fetch, the check always passes as a PR is compared with
itself.
2021-05-26 14:37:16 +01:00
Lingkai Dong d28ce001ab Travis: Use shallow fetches
We only compare files in current PR with the base branch. There's no
need to fetch the full git history or branches that are not involved
in the comparison.

This is to save time in Travis runs.
2021-05-26 14:35:07 +01:00
Lingkai Dong f9a0501263 Travis: Move frozen tools check to the end
When the scripts for the old tools are modified (e.g. when a new
target is added), the frozen tools check fails but we allow the change
if it's really needed. By moving the frozen tools check to the end,
Travis doesn't terminate early and the other tests get to run.
2021-05-24 14:39:56 +01:00
Rajkumar Kanagaraj 728883532d CMake: Run the unit tests in travis CI 2021-05-11 03:41:00 -07:00
harmut01 5a1817295c Travis: Add kitware repository to source list
The default distribution of CMake that comes with focal is 3.16.3. Add
kitware's repository (https://apt.kitware.com/) to the source list so
the latest copy of CMake is installed during CI.
2021-05-05 12:48:33 +01:00
harmut01 680bede066 Remove redundant ninja-build from apt packages 2021-05-05 11:56:37 +01:00
harmut01 fa1d9c059d Cmake: Add backward compatibilty support for MBED_TEST_MODE
Fixes #14494

MBED_TEST_MODE is required for backward compatibilty with CLI1. This
adds a test to ensure that the macro is created when using CLI2 for
testing. This also adds a test in `.travis.yml` that checks whether
CMake defines the macro when BUILD_TESTING is on.

CLI1 Reference: https://os.mbed.com/docs/mbed-os/v6.9/debug-test/greentea-for-testing-applications.html

Also, explicitly create and set the macro BUILD_TESTING to allow for
MBED_TEST_MODE to be defined by CMake. MBED_TEST_MODE is required for
backward compatibilty with CLI1.  BUILD_TESTING is used to determine
whether to define MBED_TEST_MODE.  Normally, this would be automatically
done by CTest (which we intend to add for test automation) but this
hasn't yet been added to our Greentea tests.
2021-04-28 14:21:33 +01:00
Martin Kojtal 06a02c3966 Travis: use addons to install libncursesw5 2021-04-20 13:56:43 +01:00
Martin Kojtal 75ad5163af Travis: deprecate python 2.7
Python 3, it's your time now
2021-04-19 13:26:30 +01:00
Martin Kojtal 6919513a1a fixup! aspell: fix dependencies missing 2021-04-19 12:51:25 +01:00
Martin Kojtal 487513614a fixup! aspell: fix dependencies missing 2021-04-19 12:41:34 +01:00
Martin Kojtal dfcbf0a66a Travis: remove littlefs generic tests
They do not add any value as littlefs library contains own tests, we do not need to duplicate them in Mbed OS.
We test integration with our libraries.
2021-04-19 09:19:59 +01:00
Martin Kojtal 5057bfd9bd Travis: update to 20.04
Updating to the latest Travis provided environment. It's been a year around and we can benefit from
more updated versions we use.

More info https://docs.travis-ci.com/user/reference/focal/
2021-04-15 13:34:31 +01:00
George Psimenos 3af96247a6 Update PinNames markers 2021-03-18 17:01:54 +00:00
George Psimenos 885cdef5f7 Add standard pin-names validation script & tests 2021-03-18 17:01:53 +00:00
Hugues Kamba e86ce22ad3 Travis: Remove make.py test for events and littlefs
The removed tests were building applications from the content of their
respective README files. The events test was building with the full profile twice.
The first time with the repository as is; and the second time after deleting
some directories (to simulate the baremetal profile).
The littlefs test was building once with the full profile.

Testing make.py is no longer required as it is no longer supported.
There is already test coverage for APIs in the removed tests.
2021-01-12 18:13:51 +00:00
Martin Kojtal 334e62ed53 travis: fix 3.5 test bug in attrs
Using specific version (pre 20) should fix the issue https://github.com/ARMmbed/mbed-os/issues/14110
2021-01-04 15:48:54 +00:00
Evelyne Donnaes 9964212f9e Moved USB drivers under drivers/usb 2020-11-12 14:57:00 +00:00
Ladislas de Toldi 76cf2f7232 Activate ccache for CMake 2020-11-06 17:25:23 +00:00
Qinghao Shi 0bb812a706 TEST: remove cmake build test from TravisCI 2020-11-06 17:25:23 +00:00
Martin Kojtal 662e32ffb7 CMake: Fix travis fetch PR (#13763)
Either fetch TRAVIS_COMMIT or the entire pull request (depending on the TRAVIS_PULL_REQUEST environment variable).
2020-11-06 17:25:21 +00:00
Hugues Kamba 8328963a67 CMake: Replace tested BLE application in CI description
BLE_Button, which was the previously tested BLE example, is
being removed in mbed-os-example-ble. Replace it with BLE_LED.
2020-11-06 17:25:21 +00:00
Martin Kojtal 458ce2adfb Travis: add more examples we should support
Co-authored-by: Hugues Kamba <41612201+hugueskamba@users.noreply.github.com>
2020-11-06 17:25:20 +00:00
Robert Walton 6687a6bc13 CMake: Check CMake builds CMake-capable targets in Travis 2020-11-06 17:25:19 +00:00
Martin Kojtal 894f8cc42f Travis: use build type for cmake 2020-11-06 17:25:18 +00:00
Martin Kojtal 3952212dac Travis cmake: add testing all profiles 2020-11-06 17:25:17 +00:00
Hugues Kamba 5709dd2752 CMake: Add Travis script to run a basic CI check for PRs 2020-11-06 17:25:15 +00:00
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