forked from MarlinFirmware/Marlin
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔨 Improve Docker local tests support (MarlinFirmware#25583)
- Loading branch information
Showing
6 changed files
with
64 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,24 @@ | ||
FROM python:3.9.0-buster | ||
|
||
RUN pip install -U platformio | ||
# Disable warnings about not having a TTY | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
# Disable debconf warnings | ||
ARG DEBCONF_NOWARNINGS="yes" | ||
|
||
# Upgrade pip | ||
RUN pip install --upgrade pip | ||
|
||
# Install platformio toolchain / framework and pyyaml | ||
RUN pip install -U platformio PyYaml | ||
|
||
# Upgrade platformio using development version / branch | ||
RUN pio upgrade --dev | ||
# To get the test platforms | ||
RUN pip install PyYaml | ||
|
||
# Set working directory | ||
WORKDIR /code | ||
|
||
# Set volumes / mount points that we are using | ||
VOLUME /code /root/.platformio | ||
|
||
#ENV PATH /code/buildroot/bin/:/code/buildroot/tests/:${PATH} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env python | ||
""" | ||
Extract the builds used in Github CI, so that we can run them locally | ||
""" | ||
import yaml | ||
|
||
# Set the yaml file to parse | ||
yaml_file = '.github/workflows/test-builds.yml' | ||
|
||
# Parse the yaml file, and load it into a dictionary (github_configuration) | ||
with open(yaml_file) as f: | ||
github_configuration = yaml.safe_load(f) | ||
|
||
# Print out the test platforms | ||
print(' '.join(github_configuration['jobs']['test_builds']['strategy']['matrix']['test-platform'])) |