Skip to content

Commit

Permalink
CI: Install g.download.location only if needed (#591)
Browse files Browse the repository at this point in the history
- g.download.location is included in the core for v8 and is installed with all the other addons too (currently same for in both).
- g.download.location is now installed only if missing.
- Use path instead of dbase as in the core version of g.download.location (addons version supports both).
  • Loading branch information
wenzeslaus committed Jul 19, 2021
1 parent 68f7373 commit e27518e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,13 @@
# fail on non-zero return code from a subprocess
set -e

# Install module from addons if not available (in v7).
if ! grass --tmp-location XY --exec g.download.location --help; then
grass --tmp-location XY --exec \
g.extension g.download.location
fi
grass --tmp-location XY --exec \
g.extension g.download.location
grass --tmp-location XY --exec \
g.download.location url=https://grass.osgeo.org/sampledata/north_carolina/nc_spm_full_v2alpha2.tar.gz dbase=$HOME
g.download.location url=https://grass.osgeo.org/sampledata/north_carolina/nc_spm_full_v2alpha2.tar.gz path=$HOME

grass --tmp-location XY --exec \
python3 -m grass.gunittest.main \
Expand Down

0 comments on commit e27518e

Please sign in to comment.