Regenerate key and prevent leakage

This commit is contained in:
vitaut 2015-05-21 19:29:45 -07:00
parent 0022e0b40f
commit efba235246
2 changed files with 5 additions and 5 deletions

View File

@ -7,9 +7,9 @@ os:
env:
global:
- secure: |-
jEPN5RbGT8o+zN8ybGoTzJ1m7gjP/D8vaf5V+A2ZDMayKHXdGMmVtA5FjI9B1aSiq0P4nC
cbx2lUzQffJJruBqoSI7ZhWaFBNJejVFwOer3MlzxBdNOHOrJwwf1FpgypaheCHyLebQa5
JIGZrLK2XoLb7s00FybNCZEgEvUT7W4=
Gsnp9ERFnXt+diCfc7Vb72g+7HDn1MCHvw4zfUDdoBh9bxxFlLQRlzZZfwWhzni57lflrt
0QHXafu+oBVOJuNv6WauV3+ZyuWIQRmNGjZFNLvZsXHK/dyad2vGQBPvEkb+8l/aCyTpbr
6pxmyzLHSn1ZR7OX5rfPvwM3tOyZ3H0=
matrix:
- BUILD=Doc
#- BUILD=Debug

View File

@ -49,8 +49,8 @@ if build == 'Doc':
if travis:
cmd += ' https://$KEY@github.com/cppformat/cppformat.github.io.git master'
p = Popen(cmd, shell=True, stdout=PIPE, stderr=STDOUT, cwd=repo)
# Remove URL from output because it may contain a token.
print(re.sub(r'https:.*\.git', '<url>', p.communicate()[0]))
# Print the output without the key.
print(p.communicate()[0].replace(os.environ['KEY'], '$KEY'))
if p.returncode != 0:
raise CalledProcessError(p.returncode, cmd)
exit(0)