Skip to content
Snippets Groups Projects
Commit f34518c3 authored by Vicki Pfau's avatar Vicki Pfau
Browse files

travis: Do not upload other branches

parent 0e01a3f1
No related branches found
No related tags found
No related merge requests found
......@@ -81,9 +81,10 @@ def main():
call(['pip', 'install', '-e', '.'])
call(['make', '-j3'])
with Fold('script.package', 'Packaging binaries'):
call(['python', 'setup.py', '-q', 'bdist_wheel'])
upload_to_gcs(['dist/*.whl'], 'builds')
if os.environ['TRAVIS_BRANCH'] == 'master' or os.environ['TRAVIS_TAG']:
with Fold('script.package', 'Packaging binaries'):
call(['python', 'setup.py', '-q', 'bdist_wheel'])
upload_to_gcs(['dist/*.whl'], 'builds')
with Fold('script.test', 'Running tests'):
call(['ctest', '--verbose'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment