Skip to content

Commit 378d1f6

Browse files
committed
Added steps for running build_platforms.py locally
1 parent d2a70ce commit 378d1f6

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,3 +161,22 @@ deploy:
161161
on:
162162
tags: true
163163
```
164+
165+
## Running build_platforms.py locally
166+
1. Install arduino-cli from here: https://arduino.github.io/arduino-cli/installation/
167+
2. Download ci-arduion
168+
* `git clone https://github.com/adafruit/ci-arduino`
169+
3. Put these lines in `.bashrc` or `.bash_profile` if you're on OSX, making sure to fill in the path to where you installed ci-arduino and replacing USER with your username.
170+
* `alias test-platforms='python3 ~/path/to/ci-arduino/build_platform.py'`
171+
* `export HOME=/home/USER/`
172+
4. Run this at the top level of the library you want to test
173+
* `export GITHUB_WORKSPACE=$(pwd)`
174+
5. Remove everything in test library, and re-create it
175+
* `rm -rf ~/Arduino/libraries/Adafruit_Test_Library/; mkdir ~/Arduino/libraries/Adafruit_Test_Library`
176+
6. copy current library to Adafruit_Test_Library
177+
* `cp -r * ~/Arduino/libraries/Adafruit_Test_Library`
178+
7. Find out what boards to test. Open .github/workflows/githubci.yml and find the line that runs build_platforms.py.
179+
8. Run test-platforms
180+
* `test-platforms main_platforms`
181+
* OR, if githubci.yml specified other boards, let's say the metro m0 and pyportal:
182+
* `test-platforms metro_m0 pyportal`

0 commit comments

Comments
 (0)