mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-25 06:21:00 +00:00
Fix branch detection on Travis
This commit is contained in:
parent
4118b89139
commit
289885e8c0
@ -17,7 +17,7 @@ if build == 'Doc':
|
|||||||
travis = 'TRAVIS' in os.environ
|
travis = 'TRAVIS' in os.environ
|
||||||
# Install dependencies.
|
# Install dependencies.
|
||||||
if travis:
|
if travis:
|
||||||
branch = check_output('git rev-parse --abbrev-ref HEAD', shell=True).strip()
|
branch = os.environ['TRAVIS_BRANCH']
|
||||||
if branch != 'master':
|
if branch != 'master':
|
||||||
print('Branch: ' + branch)
|
print('Branch: ' + branch)
|
||||||
exit(0) # Ignore non-master branches
|
exit(0) # Ignore non-master branches
|
||||||
|
Loading…
Reference in New Issue
Block a user