mapbox / mapbox-studio-classic

https://www.mapbox.com/mapbox-studio/
BSD 3-Clause "New" or "Revised" License
1.14k stars 229 forks source link

Before publish check that asset is download-able #1457

Open freenerd opened 9 years ago

freenerd commented 9 years ago

To prevent https://github.com/mapbox/mapbox-studio/issues/1456 in the future, the tests should make a request to the release asset URLs and fail if an asset is not 200 OK.

Something like this, not sure where to place in code though:

set -e
curl -I https://mapbox.s3.amazonaws.com/mapbox-studio/mapbox-studio-darwin-x64-v0.2.8.zip | grep "200 OK"

/cc @GretaCB