redo travis auth setup

This commit is contained in:
Jay Lee
2020-09-15 11:40:46 -04:00
parent 424fda55dd
commit 7088962d44
5 changed files with 3 additions and 47 deletions

View File

@@ -1,12 +0,0 @@
{
"_class": "OAuth2Credentials",
"_module": "oauth2client.client",
"access_token": "",
"client_id": "118850122376-72t6r2666n5rbjlfebftqat5qjai2def.apps.googleusercontent.com",
"client_secret": "",
"invalid": false,
"refresh_token": "",
"token_expiry": "2010-04-17T15:18:45Z",
"token_uri": "https://accounts.google.com/o/oauth2/token",
"user_agent": ""
}

BIN
src/travis/creds.tar.enc Normal file

Binary file not shown.

Binary file not shown.

View File

@@ -1,12 +0,0 @@
import sys
import json
import os
cfg = json.load(sys.stdin)
cfg['client_secret'] = os.getenv('client_secret')
jid = os.getenv('jid')
cfg['refresh_token'] = os.getenv('refresh_%s' % jid)
gampath = os.getenv('gampath')
out_file = os.path.join(gampath, 'oauth2.txt')
with open(out_file, 'w') as f:
json.dump(cfg, f)