Commit Graph

274 Commits

Author SHA1 Message Date
Valerii Koval c03f93521b Refactor PIO Check feature (#3478)
* Add new option --skip-packages for check command

Check tools might fail if they're not able to preprocess source
files, for example, Cppcheck uses a custom preprocessor that is
not able to parse complex preprocessor code in zephyr framework).
Instead user can specify this option to skip headers included from
packages and only check project sources.

* Fix toolchain built-in include paths order
C++ and fixed directories should have higher priority

* Refactor check feature

The main purpose is to prepare a more comprehensive build environment.
It's crucial for cppcheck to be able to check complex frameworks like
zephyr, esp-idf, etc. Also detect a special case when cppcheck fails to check
the entire project (e.g. a syntax error due to custom preprocessor)

* Add new test for check feature

Tests ststm32 platform all tools and the main frameworks

* Update check tools to the latest available versions

* Test check tools and Zephyr framework only with Python 3

* Tidy up code

* Add history entry
2020-04-26 00:10:41 +03:00
Shahrustam 6e2cc333f2 disable pio account change password and username update tests 2020-04-24 11:57:17 +03:00
ShahRustam 18c7c5a9be Refactor pio account tests. (#3473) 2020-04-24 11:25:09 +03:00
ShahRustam 2f5b231dc3 Disable pio account tests (#3472)
* minor fix pio account test

* disable pio account change password and username update tests
2020-04-24 00:13:46 +03:00
Shahrustam 75c1aafaef fix pio account tests 2020-04-23 20:45:51 +03:00
ShahRustam b9714d0ac1 Add pio account tests (#3470)
* add pio account tests

* update tests
2020-04-23 16:05:00 +03:00
Ivan Kravets ad7e3f83aa Fix tests/commands/test_init.py 2020-04-08 17:18:59 +03:00
Ivan Kravets 2e320c01b3 Fix test 2020-04-06 18:19:34 +03:00
Ivan Kravets 0f02b3b653 Improved support for Arduino "library.properties" `depends` field 2020-03-07 17:44:28 +02:00
Ivan Kravets 73ce3c94e9 Initial support for `Project Manager // Resolve #3335 2020-02-06 23:32:43 +02:00
Valerii Koval 46a9c1b6b2 Add initial support for PVS-Studio check tool (#3357)
* Add initial support for PVS-Studio check tool

* Enable all available PVS-Studio analyzers by default

* Add tests for PVS-Studio check tool

* Improve handling check tool extra flags that contain colon symbol
2020-01-23 12:57:54 +02:00
Ivan Kravets 1bd6e898ad Fix tests 2019-12-18 14:03:10 +02:00
Ivan Kravets f9cae60225 Fix tests 2019-11-28 18:14:10 +02:00
Ivan Kravets 7345d3ea19 Improve dump of config data 2019-11-05 00:17:39 +02:00
valeros dfd853fa87 Update tests for check command with a new flag "pattern" that supersedes "filter" 2019-11-04 21:34:39 +02:00
valeros d815daed29 Allow specifying defect level that will cause failure 2019-10-30 13:38:46 +02:00
Ivan Kravets 7cad06ea18 Minor test fixes 2019-10-29 17:12:18 +02:00
valeros d620579247 Fix tests for check command according to updated exit codes 2019-10-25 21:04:30 +03:00
valeros 4e43e7d3c3 Fix code formatting 2019-10-25 17:43:52 +03:00
valeros 4486a85d4c Introduce new flag --fail-on-defect to pio check 2019-10-25 15:40:50 +03:00
Ivan Kravets 9c7cc87c5f Move command related modules to "commands" package 2019-10-23 16:05:27 +03:00
Ivan Kravets d2abac9b18 Fixed an issue when configuration file options partly ignored when `--project-conf` // Resolve #3034 (#3055)
* Fixed an issue when configuration file options partly ignored when using custom ``--project-conf`` // Resolve #3034

* Py2 compatible makedirs

* Fix circle dependency

* Fix broken import in test examples

* Fix history

* Remove YAPF markers

* PyLint fix

* Fix invalid project conf path

* Move PIO Core to the root on Windows, issue with long CPPPATHs

* Respect global PLATFORMIO_BUILD_CACHE_DIR env var

* Fix Appveyor paths

* Minor changes
2019-09-27 14:13:53 +03:00
Ivan Kravets 7c41c7c2f3 Introduce Black to automate code formatting 2019-09-23 23:13:48 +03:00
Ivan Kravets c720933d34 Refactor PIO Check 2019-09-08 23:33:25 +03:00
Ivan Kravets f61d03ec8f PIO Check (#2982) 2019-09-08 18:04:41 +03:00
Ivan Kravets 0677bcecb9 Improve printing of tabulated results 2019-08-17 20:55:16 +03:00
Ivan Kravets c51c35018d Fix test 2019-07-22 00:57:01 +03:00
Ivan Kravets f3c8277572 Fix broken tests 2019-05-30 21:27:12 +03:00
Ivan Kravets 3cc4af1723 Refactor project config options 2019-05-30 16:38:04 +03:00
Ivan Kravets 3df01405a1 Remove unused Python imports 2019-05-27 22:25:22 +03:00
Ivan Kravets c79b3ff7f1 Override default “platformio.ini” with a custom using "-c, --project-conf" option // Resolve #1913 2019-05-10 00:01:10 +03:00
Ivan Kravets 62b80c396b Added support for the latest Python "Click" package (CLI Builder) // Resolve #349 2019-05-09 00:51:28 +03:00
Ivan Kravets 07a2a49d93 Refactor project helpers 2019-05-07 22:13:21 +03:00
Ivan Kravets 0d904ad1cc Fix "FileExistsError" when "platformio ci" command is used in pair with "--keep-build-dir" option 2019-03-14 20:12:18 +02:00
Ivan Kravets b6ccda3568 Fix cmd_lib test 2019-01-17 17:56:21 +02:00
Ivan Kravets 7b998c8cda Fix an issue with incorrect handling of a custom package name 2018-10-19 16:37:15 +03:00
Ivan Kravets e9f2334e59 Fix lib test 2018-09-26 15:25:38 +03:00
Ivan Kravets 2004c9b079 Fix "test_lib" test 2018-07-26 20:46:21 +03:00
Ivan Kravets 50c568c232 Fix "RuntimeError: maximum recursion depth exceeded" for library manager // Resolve #1528 2018-04-26 01:49:16 +03:00
Ivan Kravets 218a1dccf6 Fix issue with installing only the one platform package by specified type 2018-03-16 13:33:59 +02:00
Ivan Kravets 591e876660 Move http://platformio.org to https://platformio.org 2018-02-13 01:34:24 +02:00
Ivan Kravets aa57924488 Fix command:ci test 2018-02-04 01:46:57 +02:00
Ivan Kravets c5af85f123 Fix issue with multiple OneWire libs and infinite pause 2018-02-04 01:04:53 +02:00
Ivan Kravets 3289b36450 Refactore code without "arrow" dependency (resolve issue with "ImportError: No module named backports.functools_lru_cache") 2018-01-16 00:06:24 +02:00
Ivan Kravets ec419f3d0e Refactor CMD:LIB tests 2018-01-13 17:02:08 +02:00
Ivan Kravets 7cad113f0a Cleanup tests 2018-01-13 01:19:41 +02:00
Ivan Kravets e4f8a1877c Fix library updates when a version is declared in VCS format (not SemVer) 2018-01-09 21:56:21 +02:00
Ivan Kravets d8ee64a545 Fix tests 2017-11-26 01:02:21 +02:00
Ivan Kravets 0343dc0785 Drop flake8 2017-11-03 00:47:00 +02:00
Ivan Kravets 7c9989d999 Fix tests for "platform" command 2017-09-21 23:57:55 +03:00