diff options
author | Mike Klein <mtklein@chromium.org> | 2017-07-31 14:57:20 -0400 |
---|---|---|
committer | Mike Klein <mtklein@chromium.org> | 2017-07-31 19:53:51 +0000 |
commit | 8e3c42b1ee981643b9dc78b67b7da0a7b470dc37 (patch) | |
tree | 644df81fcc0d895782c1221dd6cfcce74b9d41c4 /bin | |
parent | 98adfa8726cc9a7ca8ad0a9aff58246db588a17e (diff) |
add a Win/Clang build bot
BUG=skia:2679
CQ_INCLUDE_TRYBOTS=skia.primary:Build-Win-Clang-x86_64-Release
Change-Id: I861366ae1340abcc67e87041904d08337b465bbe
Reviewed-on: https://skia-review.googlesource.com/28864
Reviewed-by: Eric Boren <borenet@google.com>
Diffstat (limited to 'bin')
-rw-r--r-- | bin/fetch-clang-win | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/bin/fetch-clang-win b/bin/fetch-clang-win deleted file mode 100644 index 06ff07b12c..0000000000 --- a/bin/fetch-clang-win +++ /dev/null @@ -1,40 +0,0 @@ -#!/usr/bin/env python - -# Copyright 2017 Google Inc. -# -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -VERSION = '308728-3' -MD5 = '8bec8c34da5d256e27638383667489e5' - -import hashlib -import os -import shutil -import tarfile -import urllib2 - -os.chdir(os.path.dirname(__file__)) - -if (not os.path.exists('clang_win/md5.txt') - or open('clang_win/md5.txt').read().strip() != MD5): - - # Clear out everything and start fresh. - shutil.rmtree('clang_win', ignore_errors=True) - os.mkdir('clang_win') - os.chdir('clang_win') - - # Grab the current Clang package. - with open(VERSION + '.tgz', 'wb') as tgz: - url = 'https://commondatastorage.googleapis.com/chromium-browser-clang' - tgz.write(urllib2.urlopen(url + '/Win/clang-' + VERSION + '.tgz').read()) - - # Extract it. - tarfile.open(VERSION + '.tgz').extractall() - - # Write out its hash to md5.txt so that next time is quicker. - h = hashlib.md5() - with open(VERSION + '.tgz', 'rb') as tgz: - h.update(tgz.read()) - with open('md5.txt', 'w') as md5: - md5.write(h.hexdigest()) |