Skip to content

Commit

Permalink
Remove temporary patches now platformio 6.1 is fixed and released (#1276
Browse files Browse the repository at this point in the history
)

upgrade to latest ststm32 platform
  • Loading branch information
asmodai27 authored Jul 6, 2022
1 parent a5412c5 commit 9be6809
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 34 deletions.
12 changes: 1 addition & 11 deletions software/common/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
# CircleCI runs this script (via .circleci/config.yml), but might have some
# environment differences, so the approximation is not perfect. For

PIO_VERSION=6.0.2
PIO_VERSION=6.1.0
COVERAGE_ENVIRONMENT=native
COVERAGE_OUTPUT_DIR=coverage_reports

Expand Down Expand Up @@ -110,21 +110,11 @@ install_linux() {
pip3 install -U pip
pip3 install codecov
pip3 install platformio==${PIO_VERSION}

# upgrading platformio to development version to get proper code coverage reports
# TODO: remove this when platformio 6.1.0 goes live.
pio upgrade --dev

source ${HOME}/.profile
}

update_platformio() {
pip3 install platformio==${PIO_VERSION}

# upgrading platformio to development version to get proper code coverage reports
# TODO: remove this when platformio 6.1.0 goes live.
pio upgrade --dev

pio pkg uninstall -d .
pio pkg install -d .
exit $EXIT_SUCCESS
Expand Down
4 changes: 2 additions & 2 deletions software/controller/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ Instructions for installing:
* [CLI](https://docs.platformio.org/en/latest/core/index.html)
* [IDE](https://docs.platformio.org/en/latest/integration/ide/pioide.html)

Some issues may prevent specific versions of platformio from building or running unit tests. It is currently recommended that you use `v6.0.1` (latest version at the time of this writing), which you may install with i.e.:
Some issues may prevent specific versions of platformio from building or running unit tests. It is currently recommended that you use `v6.1.0` (latest version at the time of this writing), which you may install with i.e.:

```
$ pip install platformio==6.0.1
$ pip install platformio==6.1.0
```

You may also need to install the package `libtinfo5` on Linux. Clang-tidy needs this package to run its checks, but platformio will just say all checks have passed without giving an error if it's missing.
Expand Down
12 changes: 1 addition & 11 deletions software/controller/controller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
# - They have to have a very good chance of passing for other
# developers if they run via ./controller.sh test

PIO_VERSION=6.0.2
PIO_VERSION=6.1.0
COVERAGE_ENVIRONMENT=native
COVERAGE_OUTPUT_DIR=coverage_reports

Expand Down Expand Up @@ -118,11 +118,6 @@ install_linux() {
pip3 install -U pip
pip3 install codecov pyserial matplotlib pandas gitpython
pip3 install platformio==${PIO_VERSION}

# upgrading platformio to development version to get proper code coverage reports
# TODO: remove this when platformio 6.1.0 goes live.
pio upgrade --dev

source ${HOME}/.profile
}

Expand All @@ -138,11 +133,6 @@ configure_platformio() {

update_platformio() {
pip3 install platformio==${PIO_VERSION}

# upgrading platformio to development version to get proper code coverage reports
# TODO: remove this when platformio 6.1.0 goes live.
pio upgrade --dev

pio pkg uninstall -d .
pio pkg install -d .
exit $EXIT_SUCCESS
Expand Down
8 changes: 0 additions & 8 deletions software/controller/integration_tests/main.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
// Manually including some headers here in order for ldf to find them:
// see https://community.platformio.org/t/ldf-not-following-environment-variables-in-6-1-0rc1/28616
/// \TODO: remove when (if) the above issue ever gets fixed
#include "actuator_base.h"
#include "hal.h"
#include "interface.h"
#include "sensors.h"

// Using these compile-time defines to avoid multiple directories and mains

#include INTEGRATION_TEST_H
Expand Down
4 changes: 2 additions & 2 deletions software/controller/platformio.ini
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ check_patterns =
; Do not include ../common/third_party

[env:stm32]
platform = [email protected].0
platform = [email protected].1
board = custom_stm32
build_flags =
${env.build_flags}
Expand All @@ -99,7 +99,7 @@ extra_scripts =
build_src_filter = +<src/>

[env:integration-test]
platform = [email protected].0
platform = [email protected].1
board = custom_stm32
build_flags =
${env.build_flags}
Expand Down

0 comments on commit 9be6809

Please sign in to comment.