diff --git a/.travis.yml b/.travis.yml index aade9358..f998e6cb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/support/travis-build.py b/support/travis-build.py index ca4446ad..9e85f0e2 100755 --- a/support/travis-build.py +++ b/support/travis-build.py @@ -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', '', 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)