Commit 289885e8 authored by vitaut's avatar vitaut

Fix branch detection on Travis

parent 4118b891
...@@ -17,7 +17,7 @@ if build == 'Doc': ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment