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
Martin Kojtal
dba7f6eacc
travis: use https for fetching astyle package
2018-12-11 13:43:56 +00:00
Martin Kojtal
49a8cb809d
travis: add license
2018-12-11 09:16:12 +00:00
Cruz Monrreal II
36790d6856
Removed rabbitmq fix from travis.yml
...
Upstream fix has been applied by Travis CI
2018-12-10 21:48:19 -06:00
Martin Kojtal
9b4be1b540
travis: rabbitmq signature update
...
Fix comes from rabbitmq:
> On December 1st, 2018 (GMT) all repositories under the RabbitMQ account on PackageCloud
will be switched to use the new signing keys. RabbitMQ users who install packages
from PackageCloud must import the new signing keys before the migration.
The recommended way of doing that is by re-running PackageCloud setup
scripts (RabbitMQ, Erlang). Signing keys can be downloaded and imported directly
as well (RabbitMQ, Erlang). If the new keys are not imported, package installation
will start failing with a signature verification error.
2018-12-03 10:31:57 +00:00
Martin Kojtal
13822a4ef4
travis: mangodb key update not needed anymore
2018-12-03 10:31:30 +00:00
Oren Cohen
45bd4f305a
Add SPM code generation test to Travis-CI
2018-11-28 14:38:44 +02:00
Martin Kojtal
a5e8df25a1
travis: astyle anchor fix
...
Missing $ for after_success, same fix as previously done for PR code changes
2018-11-20 14:50:10 +00:00
Martin Kojtal
5299017553
travis: anchor grep for astyle
...
Should not pick up .cmake files (just .c files)
2018-11-16 13:38:36 +00:00
Teppo Järvelin
f5ad355854
travis: exclude deleted files for astyle.
2018-11-16 13:58:04 +02:00
Martin Kojtal
cbdd6324ed
travis: echo failure if astyle fails
2018-11-15 07:20:13 +00:00
Martin Kojtal
70b5772dc4
travis: add after_failure for astyle
...
To get to failure, we need to exit with 1
2018-11-15 07:20:13 +00:00
Martin Kojtal
edef49b5fd
travis: astyle error leads to the pull request error
...
As our codebase is 0 styling errors, we should start treating astyle errors as
pull request blockers. Time to follow our coding style.
2018-11-15 07:20:11 +00:00
Cruz Monrreal II
5ad4b3481b
Disable current failing doxygen command until fixes are made
2018-10-30 11:45:41 -05:00
Cruz Monrreal II
948531fc2f
Added compilation of latest doxygen release.
...
Tweaked doxygen failure command
2018-10-30 11:41:07 -05:00
Cruz Monrreal II
65c4bc92fb
Added line in python testing to print pip modules in use
2018-10-16 17:33:56 -05:00
Cruz Monrreal
dc4a52c727
Merge pull request #7898 from 0xc0170/fix_astyle_common
...
Travis: fix astyle report (-/+ files)
2018-10-10 08:40:28 -05:00
Martin Kojtal
f1f16e5e26
travis: add MBED BOT to the astyle job
2018-10-09 14:20:32 -05:00
Martin Kojtal
c10a9b5f77
Merge pull request #7911 from 0xc0170/fix_license_check
...
travis: add license check for gnu library license
2018-09-26 15:07:48 +02:00
Seppo Takalo
fa8add4227
Remove components from RTOS-less build.
2018-09-01 12:37:45 -05:00
Yossi Levy
ed8e170d15
Moving SD, SPIF and FLASHIAP into mbedos and refactoring features storage directory structure.
2018-08-29 12:01:11 +03:00
Martin Kojtal
57870204eb
travis: add license check for gnu library license
2018-08-28 14:43:10 +01:00
Christopher Haster
783bc8435f
Adopted travis changes from littlefs v1.6
2018-08-06 14:30:29 -05:00
Cruz Monrreal II
64e77d369c
Moved the sourcing of the astyle archive to AWS from SourceForge.
...
SF has been failing intermitantly, and appears to not explicitly allow the automatic downloading of archives.
2018-06-26 10:54:57 -05:00
Seppo Takalo
98a787b003
Fix Astyleignore and Mbed 2 travis build rules
2018-06-21 12:56:22 +03:00
Martin Kojtal
4d49d4fc91
Travis: fix mongodb key expired error
2018-06-20 12:17:09 +01:00
Olli-Pekka Puolitaival
a4f8c0789b
Check that no GPL licence inside code
2018-05-30 17:13:35 +03:00
Cruz Monrreal II
8b661828fc
Updated Travis CI to be able to run tool tests against Python 3.
...
Will be enabled when tool support has been completely ported
2018-05-22 19:20:33 -05:00
Cruz Monrreal
16d30776aa
Merge pull request #6905 from kivaisan/remove_common_pal_flags
...
Lora: Remove obsolete FEATURE_COMMON_PAL flags
2018-05-21 10:11:20 -05:00
Christopher Haster
fa54351a64
Travis: Quick name-fix for warnings reported by Astyle
...
Currently Astyle is reporting files with warnings, not the actual count
of warnings. This is a bug, but fixing right now will cause incorrect results.
At least for the short-term we can change the name to avoid as much confusion
as possible.
2018-05-15 11:55:57 -05:00
Kimmo Vaisanen
3094327e12
Lora: Remove obsolete FEATURE_COMMON_PAL flags
...
mbed-trace no longer requires COMMON_PAL to be enabled.
2018-05-15 16:08:30 +03:00
Cruz Monrreal
5038135c7d
Merge pull request #6577 from SeppoTakalo/remove_features
...
Get rid of FEATURE_COMMON_PAL and FEATURE_NANOSTACK
2018-05-07 10:44:50 -05:00
Christopher Haster
d5af6ec461
Added nanostack to removed directories during rtos-less build
2018-04-27 14:38:44 +03:00
Martin Kojtal
c12ee10c5d
travis: add astyle run for all changes in the PR
...
To compare to master, use entire branch, not only files changed.
2018-04-19 12:55:54 +01:00
Martin Kojtal
6d427eaea1
travis: fix commit content
2018-04-19 12:55:53 +01:00
Martin Kojtal
2cd0b8143e
travis: astyle only on changed files in PR
2018-04-19 12:55:08 +01:00
Christopher Haster
396fa5f75a
Astyle: Changed from test failure to status note
2018-04-19 12:55:08 +01:00
Martin Kojtal
f6541f9fc8
Travis: add astyle
...
Fetch 3.1 astyle from website (install from ubuntu contains old 2.05).
Print version to verify and run on our codebase
2018-04-19 12:55:07 +01:00
Christopher Haster
876603004e
Fixed Travis rate-limit issue with Github requests
...
Using credentials avoids rate-limiting based on Travis's IP address
2018-04-07 13:04:47 -05:00
Olli-Pekka Puolitaival
c837b3dd42
Test line-ending problems
2018-04-03 14:38:02 +03:00
Martin Kojtal
afeb3066c3
Revert "BLE: Gatt client unit tests"
2018-03-26 11:51:29 +01:00
Cruz Monrreal
0a0cc58934
Merge pull request #6434 from cmonr/correct-apt-get-retrying
...
Modified apt-get retry logic with Travis CI retry feature
2018-03-23 14:23:09 -05:00
Cruz Monrreal
387027dddb
Merge pull request #6086 from pan-/gatt-client-unit-tests
...
BLE: Gatt client unit tests
2018-03-23 10:56:09 -05:00
Cruz Monrreal II
fa8020ee6c
Modified apt-get retry logic with Travis CI retry feature
2018-03-22 15:08:21 -05:00
Cruz Monrreal
58f57954ca
Merge pull request #6378 from geky/events-travis-prof
...
equeue: Added profiling reports to Travis
2018-03-21 16:24:33 -05:00
Christopher Haster
d828fc0df4
equeue: Added profiling reports to Travis
2018-03-16 00:03:06 -05:00
Christopher Haster
d6051c8669
Removed mbed 2 builds from Travis
2018-03-14 11:22:34 -05:00
Teppo Järvelin
0d35851e5d
Added deleting of feature/cellular when testing a build without RTOS in .travis.yml
2018-03-02 14:38:07 +02:00
Cruz Monrreal
c4354fa645
Merge pull request #6179 from geky/lfs-update
...
littlefs: Update to version 1.3
2018-03-01 13:42:47 -06:00
Christopher Haster
1e74c9cedb
littlefs: Adopted new test configurations and status
...
- Now tests LFS_NO_INTRINSICS
- Also updates status with build results
2018-02-27 10:08:59 -06:00
Christopher Haster
43bad7c0dd
Travis: Tore out python3 testing to get CI working again
...
Temporary solution, python3 will be added back later
Travis doesn't recognize version matrices when inside a matrix include job.
Instead, it breaks in a way that isn't reported as an error.
2018-02-26 10:56:39 -06:00
Martin Kojtal
4cf53fe1c1
Merge pull request #6125 from cmonr/travis-param-lacks-quotes
...
Add quotes around MBED_BOT parameter
2018-02-21 15:18:27 +01:00
Cruz Monrreal
6d374c61ac
Merge pull request #6126 from cmonr/travis-timeout-fix
...
Modified 'apt-get update' to loop until successful
2018-02-20 11:34:49 -06:00
Vincent Coubard
b689a59045
Travis: add gcc6 as dependency and use it in ble testing
2018-02-19 12:20:45 +00:00
Cruz Monrreal II
4c51f3a0d3
Added missing bracket.
2018-02-16 19:47:01 -06:00
Cruz Monrreal
ff41a10658
Merge pull request #6110 from geky/equeue-fix-no-rtos
...
equeue: Removed RTOS dependencies with RTOS not present
2018-02-16 16:16:15 -06:00