forked from meshtastic/firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5f47ca1
commit 436e631
Showing
28 changed files
with
267 additions
and
197 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
version: 0.1 | ||
cli: | ||
version: 1.20.1 | ||
version: 1.21.0 | ||
plugins: | ||
sources: | ||
- id: trunk | ||
ref: v1.4.4 | ||
uri: https://github.com/trunk-io/plugins | ||
lint: | ||
enabled: | ||
- trufflehog@3.68.5 | ||
- trufflehog@3.69.0 | ||
- [email protected] | ||
- [email protected].7 | ||
- [email protected].32 | ||
- [email protected].8 | ||
- [email protected].38 | ||
- [email protected] | ||
- [email protected] | ||
#- [email protected] | ||
- [email protected] | ||
- [email protected].1 | ||
- [email protected].2 | ||
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
|
@@ -25,7 +25,7 @@ lint: | |
- [email protected] | ||
- [email protected] | ||
- [email protected] | ||
- shellcheck@0.9.0 | ||
- shellcheck@0.10.0 | ||
- [email protected] | ||
- git-diff-check | ||
- [email protected] | ||
|
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 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 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,9 +1,9 @@ | ||
#!/usr/bin/env python3 | ||
import configparser | ||
import sys | ||
from readprops import readProps | ||
|
||
from readprops import readProps | ||
|
||
verObj = readProps('version.properties') | ||
verObj = readProps("version.properties") | ||
propName = sys.argv[1] | ||
print(f"{verObj[propName]}") |
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 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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
set -e | ||
|
||
# regen the design bins first | ||
cd design | ||
|
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 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 |
---|---|---|
@@ -1,37 +1,44 @@ | ||
|
||
|
||
import subprocess | ||
import configparser | ||
import traceback | ||
import subprocess | ||
import sys | ||
import traceback | ||
|
||
|
||
def readProps(prefsLoc): | ||
"""Read the version of our project as a string""" | ||
|
||
config = configparser.RawConfigParser() | ||
config.read(prefsLoc) | ||
version = dict(config.items('VERSION')) | ||
verObj = dict(short = "{}.{}.{}".format(version["major"], version["minor"], version["build"]), | ||
long = "unset") | ||
version = dict(config.items("VERSION")) | ||
verObj = dict( | ||
short="{}.{}.{}".format(version["major"], version["minor"], version["build"]), | ||
long="unset", | ||
) | ||
|
||
# Try to find current build SHA if if the workspace is clean. This could fail if git is not installed | ||
try: | ||
sha = subprocess.check_output( | ||
['git', 'rev-parse', '--short', 'HEAD']).decode("utf-8").strip() | ||
isDirty = subprocess.check_output( | ||
['git', 'diff', 'HEAD']).decode("utf-8").strip() | ||
sha = ( | ||
subprocess.check_output(["git", "rev-parse", "--short", "HEAD"]) | ||
.decode("utf-8") | ||
.strip() | ||
) | ||
isDirty = ( | ||
subprocess.check_output(["git", "diff", "HEAD"]).decode("utf-8").strip() | ||
) | ||
suffix = sha | ||
# if isDirty: | ||
# # short for 'dirty', we want to keep our verstrings source for protobuf reasons | ||
# suffix = sha + "-d" | ||
verObj['long'] = "{}.{}.{}.{}".format( | ||
version["major"], version["minor"], version["build"], suffix) | ||
verObj["long"] = "{}.{}.{}.{}".format( | ||
version["major"], version["minor"], version["build"], suffix | ||
) | ||
except: | ||
# print("Unexpected error:", sys.exc_info()[0]) | ||
# traceback.print_exc() | ||
verObj['long'] = verObj['short'] | ||
verObj["long"] = verObj["short"] | ||
|
||
# print("firmware version " + verStr) | ||
return verObj | ||
|
||
|
||
# print("path is" + ','.join(sys.path)) |
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
Oops, something went wrong.