Commit e29dc72
travis-ci: handle packagecloud's HTTP redirects
Added curl options:
* -L (--location) to follow Location header value from 3XX responses,
because packagecloud.io redirects a GPG key request to a CDN.
* -s (--silent) to don't show a progress meter.
* -f (--fail) to fail the command at non 2XX HTTP responses. It'll fail
`curl | <...>` command pipeline, since `set -o pipefail` is now
enabled.
Aside of that, fail test.sh script (and so a CI job) if something inside
the script fails (`set -e`) and catch mistakes from using uninitialized
bash variables (`set -u`) inside the script.1 parent a812c10 commit e29dc72
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | | - | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
11 | | - | |
12 | | - | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
0 commit comments