-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'prusa3d:master' into m27_autoreport
- Loading branch information
Showing
11 changed files
with
84 additions
and
70 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 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,14 +1,14 @@ | ||
pip~=23.0 | ||
aiohttp~=3.8 | ||
click~=8.1.3 | ||
easyocr~=1.7 | ||
ecdsa~=0.18 | ||
polib~=1.2 | ||
pyyaml~=6.0 | ||
littlefs-python==0.8 | ||
numpy~=1.26.4 | ||
pillow~=9.5 | ||
qoi~=0.5.0 | ||
click~=8.1.3 | ||
pytest~=7.3.2 | ||
pytest-asyncio~=0.21 | ||
easyocr~=1.7 | ||
aiohttp~=3.8 | ||
pip~=23.0 | ||
polib~=1.2 | ||
pre-commit | ||
pytest-asyncio~=0.21 | ||
pytest~=7.3.2 | ||
pyyaml~=6.0 | ||
qoi~=0.5.0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import sys | ||
import itertools | ||
|
||
|
||
def get_lines(path): | ||
with open(path, 'r') as file: | ||
return file.readlines() | ||
|
||
|
||
def main(): | ||
try: | ||
expected_lines = sorted( | ||
itertools.chain(get_lines('utils/holly/build-requirements.txt'), | ||
get_lines('utils/holly/heavy-requirements.txt'))) | ||
actual_lines = get_lines('requirements.txt') | ||
|
||
if actual_lines == expected_lines: | ||
return 0 | ||
else: | ||
with open('requirements.txt', 'w') as file: | ||
file.writelines(expected_lines) | ||
return 1 | ||
|
||
except Exception as ex: | ||
print(ex) | ||
return 1 | ||
|
||
|
||
if __name__ == '__main__': | ||
sys.exit(main()) |
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,10 +1,9 @@ | ||
FROM ubuntu:22.04 | ||
RUN apt-get clean && \ | ||
apt-get update -qq -y && \ | ||
apt-get install git curl python3 python3-pip python3-venv libncurses5 g++-multilib -y | ||
apt-get install git python3 python3-pip python3-venv -y | ||
WORKDIR /work | ||
ADD utils/bootstrap.py utils/bootstrap.py | ||
ADD utils/debug/10_custom_config_template.cfg utils/debug/10_custom_config_template.cfg | ||
ADD requirements.txt requirements.txt | ||
ADD utils/debug utils/debug | ||
ADD utils/holly/build-requirements.txt requirements.txt | ||
RUN python3 utils/bootstrap.py && (cd .dependencies && find . -type f -executable | xargs chmod +x) && rm -rf utils |
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 |
---|---|---|
|
@@ -50,6 +50,11 @@ pipeline { | |
|
||
stages { | ||
stage('Create Git Tag') { | ||
when { | ||
expression { | ||
return env.GIT_URL == '[email protected]:prusa3d/Prusa-Firmware-Buddy-Private.git'; | ||
} | ||
} | ||
agent any | ||
steps { | ||
script { | ||
|
@@ -94,10 +99,9 @@ pipeline { | |
sh """ | ||
ln -fs /work/.dependencies | ||
ln -fs /work/.venv | ||
. .venv/bin/activate | ||
|
||
export XDG_CACHE_HOME=\$PWD/.precommit | ||
. .venv/bin/activate | ||
python3 utils/bootstrap.py | ||
git config --unset-all core.hooksPath | ||
pre-commit install | ||
pre-commit run \ | ||
|
@@ -176,6 +180,7 @@ pipeline { | |
export GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" | ||
ln -fs /work/.dependencies | ||
ln -fs /work/.venv | ||
. .venv/bin/activate | ||
rm -rf build | ||
python3 utils/build.py \ | ||
--preset ${config.preset} \ | ||
|
@@ -184,6 +189,7 @@ pipeline { | |
--generate-bbf \ | ||
--generate-dfu \ | ||
--no-store-output \ | ||
--skip-bootstrap \ | ||
--version-suffix=${version.suffix_full} \ | ||
--version-suffix-short=${version.suffix_short} \ | ||
-DCUSTOM_COMPILE_OPTIONS:STRING="-Werror" \ | ||
|
@@ -245,6 +251,11 @@ pipeline { | |
} | ||
|
||
stage('Integration Tests') { | ||
when { | ||
expression { | ||
return env.GIT_URL == '[email protected]:prusa3d/Prusa-Firmware-Buddy-Private.git'; | ||
} | ||
} | ||
agent { | ||
dockerfile { | ||
label 'integrationtests' | ||
|
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,9 @@ | ||
ecdsa~=0.18 | ||
littlefs-python==0.8 | ||
pillow~=9.5 | ||
pip~=23.0 | ||
polib~=1.2 | ||
pre-commit | ||
pytest~=7.3.2 | ||
pyyaml~=6.0 | ||
qoi~=0.5.0 |
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,5 @@ | ||
aiohttp~=3.8 | ||
click~=8.1.3 | ||
easyocr~=1.7 | ||
numpy~=1.26.4 | ||
pytest-asyncio~=0.21 |