File tree 3 files changed +28
-25
lines changed
3 files changed +28
-25
lines changed Original file line number Diff line number Diff line change 42
42
# Cache the ${HOME}/.gmt directory, for docs and testing
43
43
- task : Cache@2
44
44
inputs :
45
- key : cachedata | 20200814
45
+ key : cachedata | 20200820-3
46
46
path : $(HOME)/.gmt
47
47
cacheHitVar : CACHE_CACHEDATA_RESTORED
48
48
displayName : Cache GMT remote data for testing
@@ -78,16 +78,10 @@ steps:
78
78
gmt earthtide -T2018-06-18T12:00:00 -Gsolid_tide_up.grd
79
79
displayName : Check a few simple commands
80
80
81
- # Download remote files, if not already cached
81
+ # Download remote files, if not already cached [Linux agents always fail]
82
82
- bash : |
83
83
set -x -e
84
- gmt get -Dcache
85
- gmt which -Ga @earth_relief_30m @earth_relief_20m @earth_relief_15m \
86
- @earth_relief_10m @earth_relief_10m_g @earth_relief_06m \
87
- @earth_relief_05m_g @earth_relief_05m @earth_relief_04m \
88
- @earth_relief_02m @earth_relief_01m
89
- gmt which -Ga @earth_day_01d @earth_day_20m
90
- gmt which -Ga @earth_night_20m
84
+ exit 1
91
85
displayName : Download remote data
92
86
condition : ne(variables['CACHE_CACHEDATA_RESTORED'], true)
93
87
Original file line number Diff line number Diff line change 41
41
# Cache the ${HOME}/.gmt directory, for docs and testing
42
42
- task : Cache@2
43
43
inputs :
44
- key : cachedata | 20200814
44
+ key : cachedata | 20200820-3
45
45
path : $(HOME)/.gmt
46
46
cacheHitVar : CACHE_CACHEDATA_RESTORED
47
47
displayName : Cache GMT remote data for testing
@@ -80,13 +80,28 @@ steps:
80
80
# Download remote files, if not already cached
81
81
- bash : |
82
82
set -x -e
83
+ # list of datasets used in tests
84
+ data="@earth_relief_01d \
85
+ @earth_relief_30m \
86
+ @earth_relief_20m \
87
+ @earth_relief_15m \
88
+ @earth_relief_10m @earth_relief_10m_g \
89
+ @earth_relief_06m \
90
+ @earth_relief_05m @earth_relief_05m_g \
91
+ @earth_relief_04m \
92
+ @earth_relief_02m
93
+ @earth_relief_01m \
94
+ @earth_day_01d \
95
+ @earth_day_20m \
96
+ @earth_night_20m \
97
+ @earth_age_06m \
98
+ @earth_mask_05m"
99
+ # Download remote data and cache files
100
+ # download remote data multiple times to make sure all are downloaded
101
+ gmt which -Ga $data
102
+ gmt which -Ga $data
103
+ gmt which -Ga $data
83
104
gmt get -Dcache
84
- gmt which -Ga @earth_relief_30m @earth_relief_20m @earth_relief_15m \
85
- @earth_relief_10m @earth_relief_10m_g @earth_relief_06m \
86
- @earth_relief_05m_g @earth_relief_05m @earth_relief_04m \
87
- @earth_relief_02m @earth_relief_01m
88
- gmt which -Ga @earth_day_01d @earth_day_20m
89
- gmt which -Ga @earth_night_20m
90
105
displayName : Download remote data
91
106
condition : ne(variables['CACHE_CACHEDATA_RESTORED'], true)
92
107
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ steps:
105
105
# Cache the ${HOME}/.gmt directory, for docs and testing
106
106
- task : Cache@2
107
107
inputs :
108
- key : cachedata | 20200814
108
+ key : cachedata | 20200820-3
109
109
path : $(HOMEPATH)/.gmt
110
110
cacheHitVar : CACHE_CACHEDATA_RESTORED
111
111
displayName : Cache GMT remote data for testing
@@ -139,16 +139,10 @@ steps:
139
139
gmt earthtide -T2018-06-18T12:00:00 -Gsolid_tide_up.grd
140
140
displayName : Check a few simple commands
141
141
142
- # Download remote files, if not already cached
142
+ # Download remote files, if not already cached [Windows agents always fail]
143
143
- bash : |
144
144
set -x -e
145
- gmt get -Dcache
146
- gmt which -Ga @earth_relief_30m @earth_relief_20m @earth_relief_15m \
147
- @earth_relief_10m @earth_relief_10m_g @earth_relief_06m \
148
- @earth_relief_05m_g @earth_relief_05m @earth_relief_04m \
149
- @earth_relief_02m @earth_relief_01m
150
- gmt which -Ga @earth_day_01d @earth_day_20m
151
- gmt which -Ga @earth_night_20m
145
+ exit 1
152
146
displayName : Download remote data
153
147
condition : ne(variables['CACHE_CACHEDATA_RESTORED'], true)
154
148
You can’t perform that action at this time.
0 commit comments