1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

64 Commits

Author SHA1 Message Date
cf04e5c824
Merge pull request #15347 from bergzand/pr/tools/sh2bash
dist/tools: Use bash instead of sh where needed
2020-10-30 16:47:38 +01:00
c5b2ded055
dist/tools: Use /usr/bin/env bash for bash scripts 2020-10-30 13:13:40 +01:00
96cad82910
dist/tools: Use bash instead of sh where needed
A number of scripts use features from bash such as `local` which are not
in the POSIX spec. This breaks on systems where sh is not symlinked to
bash.

This patch changes the interpreter indicated by the hashbang to bash for
those scripts
2020-10-30 12:12:10 +01:00
e4f724a443
tools/build_and_test: use all instead of all-debug on native 2020-10-28 22:08:18 +01:00
Marian Buschsieweke
d9e495fe83
build system: use riscv-none-elf as triplet
Use riscv-none-elf instead of legacy riscv-none-embed as target triplet for
RISC-V development. However, if ricsv-none-elf is not present, try
riscv64-unknown-elf and riscv-none-embed instead. If the legacy riscv-none-embed
is used, a warning is printed.
2020-09-15 11:18:33 +02:00
Cenk Gündoğan
964413c34a
ci: changed_files: ignore fixdep.c for cppcheck 2020-08-11 09:47:32 +02:00
26c915dcb3 tools: print_toolchain_versions.sh: update to msp430-elf 2020-08-05 14:29:07 +02:00
Martine S. Lenders
da3fdd33d1
tools: add capability to provide make command via environment
Not all operating systems name the GNU Make `make`. FreeBSD e.g. uses a
different dialect of Make, that seems to be incompatible with GNU make.
(I wasn't able to get `make` run, but `gmake` works).

This allows our test scripts to be configured via the environment
variable `MAKE` to point to a different make command.
2020-07-08 09:36:36 +02:00
Jose Alamos
bf1e2431ac ci/static_tests: call uncrustify check 2020-04-28 12:35:25 +02:00
f7bb189d3e dist/tools/ci/static_tests.sh: tag base branch for Murdock 2020-03-03 14:38:13 +01:00
294b999d34 dist/tools/ci/static_tests.sh: fix shellcheck errors 2020-03-03 14:38:13 +01:00
09538c5a75 dist: split out static tests from build_and_test.sh 2020-02-26 12:36:50 +01:00
Sebastian Meiling
2aaf811d84
Merge pull request #9778 from jia200x/pr/vera++
style-check/vera++: add style validator and scripts
2020-02-18 10:04:38 +01:00
Jose Alamos
d0b13281d8 ci: invoke vera++ from CI 2020-02-14 14:17:17 +01:00
077bf8aa73
tools/toolchain_version: remove extra underlying - 2020-02-13 10:54:42 +01:00
Juan Carrano
02b72ab385 print_toolchain_versions: print system and make's default shell.
Some systems use dash as system shell, others use bash. The shell used
by make can also be different, and unrelated to the system shell.
Differences in this variable can cause problems when testing PRs and
reporting bugs.

The default shell is important system information that should be reported.
2020-01-07 09:28:46 +01:00
Gunar Schorcht
0252af6572 dist/tools/ci: print toolchain version update for esp8266
The new ESP8266 port in PR #11108 requires a different tool chain than the previous implementation. The version check must be updated accordingly.
2020-01-04 17:23:28 +01:00
Sebastian Meiling
c185307025 tools: correctly detect and print FreeBSD OS
Currently the `print_toolchain_versions` script only supports Linux
and Apple macOS when printing OS name and version. This adds support
for FreeBSD.
2019-12-18 10:25:29 +01:00
Martine S. Lenders
ccc10432be
dist/tools/ci/print_toolchain_versions.sh: add ccache 2019-11-26 09:28:28 +01:00
3e3768140c
tools/ci: fix typo in build_and_test.sh script 2019-10-10 15:48:18 +02:00
5d408d68c4
ci: add codespell check to track typos 2019-10-10 15:48:18 +02:00
Sebastian Meiling
950b83e63e
Merge pull request #10252 from jcarrano/flake8-report-existence
tools/ci: correcly report flake8 version.
2019-08-14 11:11:50 +02:00
3d6434125e
dist/tools/ci: update print version script in build_and_test.sh 2019-05-24 17:14:06 +02:00
Juan Carrano
2209435214 tools/ci: correcly report flake8 version.
If the flake8 executable is not found, the static test script reports
the tool as missing. It may happen that the flake8 module is installed,
but the console entry point is not.

In the flake8 shell script, flake is invoked via `python -m`. The result
is a confusing error message where static-test reports the tools as missing,
yet the flake8 tests are run.

This patch makes the toolchain version script use the same command as the
flake8 script.
2019-01-15 20:10:29 +01:00
Juan Carrano
9926ac1ffa ci/print_toolchain_versions: robust/portable version detection.
Detect command line tool versions without using "command".
Command may be a builting in some shells, leading to unportability.

The new version uses the status code to correctly detect a non-existent
command. This allows it to differentiate between error in the tool and
not-found errors.

It also works with compound commands, for example `python -m callable_module".
2019-01-15 20:02:01 +01:00
Martine Lenders
4887b22ef5 print_toolchain_versions.sh: add xtensa newlibs 2018-12-29 15:26:36 +01:00
Martine Lenders
745574266c print_toolchain_versions.sh: add xtensa toolchains 2018-12-29 14:28:08 +01:00
Martine Lenders
7bdbd163c9 print_toolchain_versions.sh: make lists easily diff-able 2018-12-29 14:27:35 +01:00
cladmi
bcf0342cbd
static-test: add buildsystem sanity check 2018-11-19 16:00:46 +01:00
Joakim Nohlgård
3deea7dfbf print_toolchain_versions.sh: Add make command version 2018-11-12 14:06:29 +01:00
smlng
6d24033bd6 dist/tools: print OS and Kernel version
Add output to print_toolchain_version script to include info
on the operating system and its kernel version.
2018-09-25 09:22:42 +02:00
smlng
87505f0334 dist/tools: fix whitespace in print_toolchain_versions 2018-09-25 09:22:41 +02:00
smlng
c73ed667c1 dist/tools: print more tool versions
This adds openocd, python, python2, and python3 to the helper
script print_toolchain_versions.sh.
2018-09-25 09:22:41 +02:00
smlng
424830b06b dist/tools: parse version info from stderr
Currently version information of commands and tools is only parsed
from STDOUT, however some tools like openocd print version info
to STDERR only. This commits adds parsing of STDERR for version
infos if STDOUT does not contain such info.
2018-09-25 09:22:41 +02:00
kenrabold
a6ba0d85ee make: Ignore checking all vendor files
Ignore all files in any vendor directory, not just /include/vendor
2018-05-29 15:21:44 -07:00
f2a73c26cf ci: print_toolchain_versions.sh: enlarge field width to 23 2018-04-13 12:04:08 +02:00
fa96289531 dist/tools/ci/print_toolchain_versions.sh: add riscv toolchain 2018-04-13 11:55:55 +02:00
Sebastian Meiling
780f6046d8
Merge pull request #8745 from aabadie/pr/tools/print_doxygen_version
dist/tools/ci: also print doxygen and flake8 versions
2018-03-09 09:21:00 +01:00
80b7094488 dist/tools/ci: also print doxygen and flake8 versions 2018-03-05 18:42:39 +01:00
smlng
32cacd1743 tools: show diff for headerguards check on failure
fixes #8737
2018-03-05 13:54:51 +01:00
smlng
9968889c13 tools/ci: enhance print_toolchain script
- add generic command version printer
    - add cmake version
    - enhance output structure
2018-03-02 20:03:43 +01:00
6f99a98205
Merge pull request #8290 from smlng/ci/toolchain/print_git_version
toolchains: print git version
2017-12-21 11:54:06 +01:00
smlng
e18aa35559 toolchains: print git version 2017-12-19 16:20:21 +01:00
035bdf7dcb dist/tools: add PEP8 check to static tests 2017-12-15 15:07:50 +01:00
Martine Lenders
83930a0625
dist: add commit message length checker 2017-12-06 12:04:34 +01:00
Hauke Petersen
a7c1a3f689 tools/changed_files: adapt for common board dirs 2017-11-30 10:26:36 +01:00
Hauke Petersen
acaa092d6f dist/tools/ci: do not call make for qemu-i386 2017-11-16 10:42:09 +01:00
60fb6d2d50 dist: tools: changed_files.sh: add msba2 tools to exclude list 2017-05-24 17:54:02 +02:00
ed31db4702 dist: tools: build_and_test.sh: add header guard check 2017-05-24 17:54:01 +02:00
d603367c08 dist/tools/ci/print_toolchain_versions.sh: add coccinelle 2017-05-12 13:17:53 +02:00