Skip to content

Commit

Permalink
macOS test
Browse files Browse the repository at this point in the history
  • Loading branch information
ussserrr committed Feb 28, 2019
1 parent 19070fb commit 0d2968a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ to see help.
5. Run `platformio boards` (`pio boards`) or go to [boards](https://docs.platformio.org/en/latest/boards) to list all supported devices. Pick one and use its ID as a `-b` argument (for example, `nucleo_f031k6`)
6. All done. You can now run
```bash
$ python3 stm32pio.py new -d /path/to/cubemx/project -b nucleo_f031k6 --start-editor=vscode
$ python3 stm32pio.py new -d /path/to/cubemx/project -b nucleo_f031k6 --start-editor=vscode --with-build
```
to complete generation and start the Visual Studio Code editor with opened folder (as example, not required). Make sure you have all tools in PATH (`java` (or set in `settings.py`), editor, Python)
to complete generation, start the Visual Studio Code editor with opened folder and compile the project (as example, not required). Make sure you have all tools in PATH (`java` (or set in `settings.py`), editor, Python)

7. If you will be in need to update hardware configuration in the future, make all necessary stuff in CubeMX and run `generate` command in a similar way:
```bash
Expand Down
6 changes: 5 additions & 1 deletion stm32pio/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@
import time
import unittest

import settings, util
import settings
import util



project_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', 'stm32pio-test')
board = 'nucleo_f031k6'



def clean_run(test):
def wrapper(self):
util.clean(project_path)
Expand Down

0 comments on commit 0d2968a

Please sign in to comment.