Skip to content

[Backport 6.1] Update GMT caches for testings #4005

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions ci/azure-pipelines-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ steps:
# Cache the ${HOME}/.gmt directory, for docs and testing
- task: Cache@2
inputs:
key: cachedata | 20200814
key: cachedata | 20200820-3
path: $(HOME)/.gmt
cacheHitVar: CACHE_CACHEDATA_RESTORED
displayName: Cache GMT remote data for testing
Expand Down Expand Up @@ -78,16 +78,10 @@ steps:
gmt earthtide -T2018-06-18T12:00:00 -Gsolid_tide_up.grd
displayName: Check a few simple commands

# Download remote files, if not already cached
# Download remote files, if not already cached [Linux agents always fail]
- bash: |
set -x -e
gmt get -Dcache
gmt which -Ga @earth_relief_30m @earth_relief_20m @earth_relief_15m \
@earth_relief_10m @earth_relief_10m_g @earth_relief_06m \
@earth_relief_05m_g @earth_relief_05m @earth_relief_04m \
@earth_relief_02m @earth_relief_01m
gmt which -Ga @earth_day_01d @earth_day_20m
gmt which -Ga @earth_night_20m
exit 1
displayName: Download remote data
condition: ne(variables['CACHE_CACHEDATA_RESTORED'], true)

Expand Down
29 changes: 22 additions & 7 deletions ci/azure-pipelines-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ steps:
# Cache the ${HOME}/.gmt directory, for docs and testing
- task: Cache@2
inputs:
key: cachedata | 20200814
key: cachedata | 20200820-3
path: $(HOME)/.gmt
cacheHitVar: CACHE_CACHEDATA_RESTORED
displayName: Cache GMT remote data for testing
Expand Down Expand Up @@ -80,13 +80,28 @@ steps:
# Download remote files, if not already cached
- bash: |
set -x -e
# list of datasets used in tests
data="@earth_relief_01d \
@earth_relief_30m \
@earth_relief_20m \
@earth_relief_15m \
@earth_relief_10m @earth_relief_10m_g \
@earth_relief_06m \
@earth_relief_05m @earth_relief_05m_g \
@earth_relief_04m \
@earth_relief_02m
@earth_relief_01m \
@earth_day_01d \
@earth_day_20m \
@earth_night_20m \
@earth_age_06m \
@earth_mask_05m"
# Download remote data and cache files
# download remote data multiple times to make sure all are downloaded
gmt which -Ga $data
gmt which -Ga $data
gmt which -Ga $data
gmt get -Dcache
gmt which -Ga @earth_relief_30m @earth_relief_20m @earth_relief_15m \
@earth_relief_10m @earth_relief_10m_g @earth_relief_06m \
@earth_relief_05m_g @earth_relief_05m @earth_relief_04m \
@earth_relief_02m @earth_relief_01m
gmt which -Ga @earth_day_01d @earth_day_20m
gmt which -Ga @earth_night_20m
displayName: Download remote data
condition: ne(variables['CACHE_CACHEDATA_RESTORED'], true)

Expand Down
12 changes: 3 additions & 9 deletions ci/azure-pipelines-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ steps:
# Cache the ${HOME}/.gmt directory, for docs and testing
- task: Cache@2
inputs:
key: cachedata | 20200814
key: cachedata | 20200820-3
path: $(HOMEPATH)/.gmt
cacheHitVar: CACHE_CACHEDATA_RESTORED
displayName: Cache GMT remote data for testing
Expand Down Expand Up @@ -139,16 +139,10 @@ steps:
gmt earthtide -T2018-06-18T12:00:00 -Gsolid_tide_up.grd
displayName: Check a few simple commands

# Download remote files, if not already cached
# Download remote files, if not already cached [Windows agents always fail]
- bash: |
set -x -e
gmt get -Dcache
gmt which -Ga @earth_relief_30m @earth_relief_20m @earth_relief_15m \
@earth_relief_10m @earth_relief_10m_g @earth_relief_06m \
@earth_relief_05m_g @earth_relief_05m @earth_relief_04m \
@earth_relief_02m @earth_relief_01m
gmt which -Ga @earth_day_01d @earth_day_20m
gmt which -Ga @earth_night_20m
exit 1
displayName: Download remote data
condition: ne(variables['CACHE_CACHEDATA_RESTORED'], true)

Expand Down