mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-30 02:37:36 +02:00
Print branch name
This commit is contained in:
@ -17,7 +17,9 @@ if build == 'Doc':
|
|||||||
travis = 'TRAVIS' in os.environ
|
travis = 'TRAVIS' in os.environ
|
||||||
# Install dependencies.
|
# Install dependencies.
|
||||||
if travis:
|
if travis:
|
||||||
if check_output('git rev-parse --abbrev-ref HEAD', shell=True).strip() != 'master':
|
branch = check_output('git rev-parse --abbrev-ref HEAD', shell=True).strip()
|
||||||
|
if branch != 'master':
|
||||||
|
print('Branch: ' + branch)
|
||||||
exit(0) # Ignore non-master branches
|
exit(0) # Ignore non-master branches
|
||||||
check_call('curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | ' +
|
check_call('curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | ' +
|
||||||
'sudo apt-key add -', shell=True)
|
'sudo apt-key add -', shell=True)
|
||||||
|
Reference in New Issue
Block a user