-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #136 from UIUCLibrary/dev
update test files url
- Loading branch information
Showing
4 changed files
with
72 additions
and
34 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
23 changes: 23 additions & 0 deletions
23
ci/docker/shared/conan/ensure_compiler_support_by_conan.py
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,23 @@ | ||
import yaml | ||
import argparse | ||
|
||
def get_arg_parser(): | ||
parser = argparse.ArgumentParser() | ||
parser.add_argument("settings") | ||
parser.add_argument("compiler_version") | ||
return parser | ||
|
||
|
||
def main(): | ||
parser = get_arg_parser() | ||
args = parser.parse_args() | ||
with open(args.settings) as fp: | ||
data = yaml.safe_load(fp) | ||
if args.compiler_version not in data['compiler']['gcc']['version']: | ||
data['compiler']['gcc']['version'].append(args.compiler_version) | ||
with open(args.settings, "w") as fp: | ||
yaml.dump(data, fp) | ||
print(f"Updated {args.settings}") | ||
|
||
if __name__ == '__main__': | ||
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
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