OLD | NEW |
1 #!/bin/sh | 1 #!/bin/sh |
2 # Instructions for authenticating. | |
3 # | |
4 # Install the utilities you need: | |
5 # curl https://sdk.cloud.google.com | bash | |
6 # | |
7 # Authenticate | |
8 # gcloud auth login | |
9 # | |
10 # Follow instructions on web page. | |
11 # | |
12 # Set Project | |
13 # gcloud config set project google.com:skia-buildbots | |
14 | 2 |
15 # Copies the latest bot-generated SKP set to ./skps. | 3 # Copies the latest bot-generated SKP set to ./skps. |
16 | 4 |
17 set -x | 5 set -x |
18 set -e | 6 set -e |
19 | 7 |
20 VERSION=`cat $(dirname $0)/../SKP_VERSION` | 8 VERSION=`cat $(dirname $0)/../SKP_VERSION` |
21 gsutil -m cp -r gs://chromium-skia-gm/playback_$VERSION/skps . | 9 if ! gsutil -m cp -r gs://chromium-skia-gm/playback_$VERSION/skps . ; then |
| 10 cat >&2 <<EOF |
| 11 |
| 12 Instructions for authenticating. |
| 13 |
| 14 Install the utilities you need: |
| 15 curl https://sdk.cloud.google.com | bash |
| 16 |
| 17 Authenticate |
| 18 gcloud auth login |
| 19 |
| 20 Follow instructions on web page. |
| 21 |
| 22 Set Project |
| 23 gcloud config set project google.com:skia-buildbots |
| 24 |
| 25 EOF |
| 26 exit 1 |
| 27 fi |
OLD | NEW |