65 Commits

Author SHA1 Message Date
Hamish Willee ddb84c7ccf fix(matrixpilot): Remove dialect and references (#2518) 2026-06-11 17:21:01 +10:00
Patrick José Pereira f11c7e1233 scripts: check_api_break: Only check if message is wip (#2392)
* scripts: check_api_break: Only check if message is wip

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>

* ci: check_api_break: Add permissions

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>

* scripts: check_api_break: Add comment in PR if message or enum is removed

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>

---------

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2025-12-18 14:07:17 +11:00
Patrick José Pereira dd17c1a65d CI check for non-wip api breaks (#2369) 2025-11-19 09:14:50 +11:00
Christian Clauss e7cdcf4b52 Fix ruff rules E711,E712,F841 (#2314)
* Fix ruff rules E711,E712,F841

* Remove unused re (_rex) and import

---------

Co-authored-by: Hamish Willee <hamishwillee@gmail.com>
2025-07-24 17:49:00 +10:00
Christian Clauss 0bcf338f9c ruff check --select=E713,E714,F401,F541 —fix
% `ruff check --select=E713,E714,F401,F541 —statistics`
```
 3      E713    not-in-test
 2      F401    unused-import
 1      E714    not-is-test
 1      F541    f-string-missing-placeholders
```
% `ruff check --select=E713,E714,F401,F541 —fix`<2028>```
Found 7 errors (7 fixed, 0 remaining).
```
% `ruff rule E713`
2025-07-17 08:41:28 +10:00
Hamish Willee d886859d3d Try fix build order (#2262)
Co-authored-by: PX4BuildBot <bot@pixhawk.org>
2025-05-07 14:14:05 +10:00
Peter Hall 297410eb96 scripts: add a simple python checker to automate inconsistency check (#2206)
* scripts: add a simple python checker to automate inconsistency check

* scripts: xml_check: add argments and a few more warnings

* Scripts: rename xml check

* Fix up errors in the single file case

* run vscode prettier

---------

Co-authored-by: Hamish Willee <hamishwillee@gmail.com>
2025-02-12 14:34:18 +11:00
Hamish Willee a31bf3845f Fix c_library_vX build order (#2026) 2023-08-24 07:14:41 +10:00
Julian Oes 8d4e50ee5b scripts: install npm dependencies first
Signed-off-by: Julian Oes <julian@oes.ch>
2023-02-08 10:55:09 +13:00
Julian Oes 551e3b491c Fix CI (#1888)
* workflows: remove Python 3.6 (EOL), add 3.9, 3.10

* scripts: only format message_definitions

Otherwise this tries to reformat xml files inside pymavlink which
creates a circular dependency.

* scripts: nicer formatting

* workflows: the Python version is not a float
2022-09-07 12:53:19 +10:00
Hamish Willee 81f8b8a6d5 update_c_library - build devfirst (#1692) 2021-09-08 17:27:11 +10:00
Hamish Willee e6b380da16 update_c_library script - remove autoquad generation (#1630) 2021-05-12 17:05:34 +10:00
Lorenz Meier 076075687e Add development file to generated C libraries 2021-03-18 09:41:53 +01:00
olliw42 9afc65df01 improve format_xml.sh script, tab to spaces (#1555) 2021-02-04 21:57:23 +11:00
Julian Oes 7eec42f4a1 scripts: don't fail if there is no diff to commit 2021-02-03 18:01:59 +01:00
Julian Oes 5b29f942e3 CI improvements, add deploy to c_library_v1/2 back in (#1568)
* workflows: remove Python 3.5 which is EOL

I'll leave Python 2.7 so that we don't accidentally break it.

* scripts: separate tests into functions

This way we can run parts of it in respective CI instances.

* workflows: separate test into format, python, node

This way we don't have an explosion of versions to test.

* scripts: use consistent shebang

* workflows: use newer action

* workflows: ignore node 15 for now

* workflows: add fake deploy step

* workflows/scripts: update deploy script
2021-02-03 16:43:18 +01:00
olliw42 faa29154d7 update update_c_library.sh script (#1553) 2021-01-14 11:38:23 +11:00
Pierre Kancir bc153b24cf Script: remove useless pymavlink test 2019-04-24 07:30:48 +02:00
Pierre Kancir 1da54d95ed script: skip pymavlink install 2019-04-24 07:30:48 +02:00
Pierre Kancir fa01a7fc47 scripts: remove bash dependency on test.sh 2019-04-11 11:41:53 +02:00
Pierre Kancir 62fa828979 scripts: test.sh : add a generic CI variable to for other CI 2018-11-28 08:58:38 +01:00
Pierre Kancir d264bfd848 scripts: test.sh : dont try to update the submodule, lets the CI do it 2018-11-28 08:58:38 +01:00
Pierre Kancir e2a0f241aa scripts: reformat travis_update_generated_repos.sh 2018-11-28 08:58:38 +01:00
Pierre Kancir 556fda4929 scripts: reformat format_xml.sh 2018-11-28 08:58:38 +01:00
Pierre Kancir 38ecb35a3e Scripts: make a function to test generation and separate generation for protocol v2
need for C++11 that is v2.0 only
2018-10-26 10:25:04 +02:00
Pierre Kancir 666415dc0f Scripts: run test on all message definitions xml 2018-10-26 10:25:04 +02:00
Pierre Kancir 24e2c9563c Scripts: update test.sh syntax 2018-10-26 10:25:04 +02:00
Dr.-Ing. Amilcar do Carmo Lucas b4b29d91d9 Adapt to new pymavlink tests 2018-07-26 10:07:06 +02:00
Dr.-Ing. Amilcar Do Carmo Lucas dbdca7b14d Add option to validate units 2018-02-08 09:09:35 -05:00
Lorenz Meier c72087cef9 Formatting script: Add clear instructions to fix issues 2017-07-22 23:01:24 +02:00
James Goppert 5a2bb4ef9c Add xmllint check to travis. 2017-01-27 01:18:48 -05:00
Lorenz Meier 1183bc266f Create default dialect "standard" 2016-10-23 17:18:50 +02:00
Lorenz Meier 44133b940b Fix message generation by only generating dialects and not common standalone. Fixes #639. 2016-10-21 09:29:13 +02:00
Lorenz Meier 5333afcb30 autogenerated headers for rev https://github.com/mavlink/mavlink/tree/89d76a4f5755cbb1d10d7a86cd3c24af1438dbbf 2016-06-24 12:33:14 +02:00
Lorenz Meier 89d76a4f57 Fix protocol generation and GIT upload 2016-06-24 12:25:15 +02:00
Lorenz Meier 0ba611cbe1 autogenerated headers for rev https://github.com/mavlink/mavlink/tree/e7e7e40ddf2ca8f0a3c07a6046a101a109fc9382 2016-06-24 12:21:42 +02:00
Lorenz Meier e7e7e40ddf autogenerated headers for rev https://github.com/mavlink/mavlink/tree/0d19edb5e28496660dc9b1b5b76c550626ca2970 2016-06-24 12:20:57 +02:00
Lorenz Meier 0d19edb5e2 Fix generator 2016-06-24 12:09:18 +02:00
Lorenz Meier 6d7072f091 Fix generator syntax 2016-06-24 12:07:10 +02:00
Lorenz Meier 474e6b863d Work towards fixing the generator 2016-06-24 12:00:16 +02:00
Lorenz Meier f7e38f9e29 Update protocol generators 2016-06-24 11:40:02 +02:00
Jonathan Challinger 88647d2edb scripts: added xmlpretty.py tool 2016-01-07 17:48:02 +11:00
Lorenz Meier e1fbf838c2 Add message definitions to C library 2016-01-05 21:31:02 +01:00
Lorenz Meier e6f785ad31 Make sure to update the common library last, as we are missing the right enums else 2015-06-19 09:14:18 +02:00
Lorenz Meier 83b3c23332 Travis CI:GIT credentials handling. 2014-12-29 12:04:34 +01:00
Lorenz Meier bdd28610ce Travis CI: Always build messages 2014-12-29 11:52:59 +01:00
Lorenz Meier 17b741ccae Travis CI: Fix generation Python version, fancy status printing 2014-12-29 11:43:49 +01:00
Lorenz Meier 2856781888 Travis CI: Only generate files for one Python version 2014-12-29 11:35:57 +01:00
Lorenz Meier cbff01644a Travis CI: Force exit on error, fix repo URL 2014-12-29 11:26:58 +01:00
Lorenz Meier 1073f99e89 Update binary generator 2014-12-29 11:14:54 +01:00