Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Print version info for Ubuntu and CentOS runs (#1832)
To clearly show what version was installed and what dependencies are used, this prints version info at the end of Ubuntu and CentOS workflows (regardless of build status so possibly failing when GRASS GIS does not build correctly). This includes dependencies and extended Python version info using the Python set in the GRASS_PYTHON variable.
- Loading branch information
1 parent
f4f6285
commit 2b9a3ec
Showing
3 changed files
with
22 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Print versions, esp. versions of dependencies. | ||
|
||
# fail on non-zero return code from a subprocess | ||
set -e | ||
|
||
grass --version | ||
grass --tmp-location XY --exec g.version -e | ||
# Detailed Python version info (in one line thanks to echo) | ||
grass --tmp-location XY --exec bash -c "echo Python: \$(\$GRASS_PYTHON -c 'import sys; print(sys.version)')" | ||
python3 --version | ||
python --version |
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