BugChomper: Get the oauth_client_secret from GS
authorcommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 13 May 2014 19:18:55 +0000 (19:18 +0000)
committercommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 13 May 2014 19:18:55 +0000 (19:18 +0000)
BUG=skia:
NOTRY=true
(SkipBuildbotRuns)

R=jcgregorio@google.com

Author: borenet@google.com

Review URL: https://codereview.chromium.org/288593003

git-svn-id: http://skia.googlecode.com/svn/trunk@14718 2bbb7eff-a529-9590-31e7-b0007b416f81

.gitignore
tools/bug_chomper/run_server.sh

index 5f82689..ad0f8ff 100644 (file)
@@ -10,4 +10,5 @@ out
 platform_tools/chromeos/third_party/externals
 platform_tools/chromeos/toolchain
 third_party/externals
+tools/bug_chomper/oauth_client_secret.json
 xcodebuild
index 5bedb4f..1a49031 100755 (executable)
@@ -7,5 +7,10 @@ go get github.com/gorilla/securecookie
 
 DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
 cd $DIR
+
+if [[ ! -f oauth_client_secret.json ]]; then
+  gsutil cp gs://chromium-skia-gm/bugchomper/oauth_client_secret.json .
+fi
+
 GOPATH="$GOPATH:$DIR" go run $DIR/src/server/server.go $@