mirror of
https://github.com/GAM-team/GAM.git
synced 2026-06-29 10:21:35 +00:00
Run GAM test commands against live domain
This commit is contained in:
15
src/travis/svars-write.py
Normal file
15
src/travis/svars-write.py
Normal file
@@ -0,0 +1,15 @@
|
||||
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)
|
||||
vmtype = os.getenv('VMTYPE')
|
||||
if vmtype == 'test':
|
||||
out_file = 'oauth2.txt'
|
||||
else:
|
||||
out_file = 'gam/oauth2.txt'
|
||||
with open(out_file, 'w') as f:
|
||||
json.dump(cfg, f)
|
||||
Reference in New Issue
Block a user