From 7f3f4d806c8e14a893e428b78644b1604b81c30b Mon Sep 17 00:00:00 2001 From: vitaut Date: Mon, 23 Nov 2015 08:42:01 -0800 Subject: [PATCH] Fix branch detection on Travis --- support/travis-build.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/support/travis-build.py b/support/travis-build.py index 84fb4db12c5b..4d109f0b50e6 100755 --- a/support/travis-build.py +++ b/support/travis-build.py @@ -17,8 +17,9 @@ def rmtree_if_exists(dir): travis = 'TRAVIS' in os.environ # Install dependencies. if travis: + check_call(['git', 'branch']) branch = check_output('git rev-parse --abbrev-ref HEAD', shell=True).strip() - if branch != 'master': + if not branch.endswith('/master'): print('Branch: ' + branch) exit(0) # Ignore non-master branches check_call('curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | ' +