Home | History | Annotate | Download | only in bot
      1 # Copyright (c) 2015, Google Inc.
      2 #
      3 # Permission to use, copy, modify, and/or distribute this software for any
      4 # purpose with or without fee is hereby granted, provided that the above
      5 # copyright notice and this permission notice appear in all copies.
      6 #
      7 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
      8 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
      9 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
     10 # SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
     11 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
     12 # OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
     13 # CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
     14 
     15 vars = {
     16   'chromium_git': 'https://chromium.googlesource.com',
     17 }
     18 
     19 deps = {
     20   'boringssl/util/bot/gyp':
     21     Var('chromium_git') + '/external/gyp.git' + '@' + '4a9b712d5cb4a5ba7a9950128a7219569caf7263',
     22 }
     23 
     24 hooks = [
     25   {
     26     'name': 'cmake_linux64',
     27     'pattern': '.',
     28     'action': [ 'download_from_google_storage',
     29                 '--no_resume',
     30                 '--platform=linux*',
     31                 '--no_auth',
     32                 '--bucket', 'chromium-tools',
     33                 '-s', 'boringssl/util/bot/cmake-linux64.tar.gz.sha1',
     34     ],
     35   },
     36   {
     37     'name': 'cmake_mac',
     38     'pattern': '.',
     39     'action': [ 'download_from_google_storage',
     40                 '--no_resume',
     41                 '--platform=darwin',
     42                 '--no_auth',
     43                 '--bucket', 'chromium-tools',
     44                 '-s', 'boringssl/util/bot/cmake-mac.tar.gz.sha1',
     45     ],
     46   },
     47   {
     48     'name': 'cmake_win32',
     49     'pattern': '.',
     50     'action': [ 'download_from_google_storage',
     51                 '--no_resume',
     52                 '--platform=win32',
     53                 '--no_auth',
     54                 '--bucket', 'chromium-tools',
     55                 '-s', 'boringssl/util/bot/cmake-win32.zip.sha1',
     56     ],
     57   },
     58   {
     59     'name': 'perl_win32',
     60     'pattern': '.',
     61     'action': [ 'download_from_google_storage',
     62                 '--no_resume',
     63                 '--platform=win32',
     64                 '--no_auth',
     65                 '--bucket', 'chromium-tools',
     66                 '-s', 'boringssl/util/bot/perl-win32.zip.sha1',
     67     ],
     68   },
     69   {
     70     'name': 'yasm_win32',
     71     'pattern': '.',
     72     'action': [ 'download_from_google_storage',
     73                 '--no_resume',
     74                 '--platform=win32',
     75                 '--no_auth',
     76                 '--bucket', 'chromium-tools',
     77                 '-s', 'boringssl/util/bot/yasm-win32.exe.sha1',
     78     ],
     79   },
     80   {
     81     'name': 'win_toolchain',
     82     'pattern': '.',
     83     'action': [ 'python',
     84                 'boringssl/util/bot/vs_toolchain.py',
     85                 'update',
     86     ],
     87   },
     88   {
     89     'name': 'clang',
     90     'pattern': '.',
     91     'action': [ 'python',
     92                 'boringssl/util/bot/update_clang.py',
     93     ],
     94   },
     95   # TODO(davidben): Only extract archives when they've changed. Extracting perl
     96   # on Windows is a significant part of the cycle time.
     97   {
     98     'name': 'cmake_linux64_extract',
     99     'pattern': '.',
    100     'action': [ 'python',
    101                 'boringssl/util/bot/extract.py',
    102                 'boringssl/util/bot/cmake-linux64.tar.gz',
    103                 'boringssl/util/bot/cmake-linux64/',
    104     ],
    105   },
    106   {
    107     'name': 'cmake_mac_extract',
    108     'pattern': '.',
    109     'action': [ 'python',
    110                 'boringssl/util/bot/extract.py',
    111                 'boringssl/util/bot/cmake-mac.tar.gz',
    112                 'boringssl/util/bot/cmake-mac/',
    113     ],
    114   },
    115   {
    116     'name': 'cmake_win32_extract',
    117     'pattern': '.',
    118     'action': [ 'python',
    119                 'boringssl/util/bot/extract.py',
    120                 'boringssl/util/bot/cmake-win32.zip',
    121                 'boringssl/util/bot/cmake-win32/',
    122     ],
    123   },
    124   {
    125     'name': 'perl_win32_extract',
    126     'pattern': '.',
    127     'action': [ 'python',
    128                 'boringssl/util/bot/extract.py',
    129                 '--no-prefix',
    130                 'boringssl/util/bot/perl-win32.zip',
    131                 'boringssl/util/bot/perl-win32/',
    132     ],
    133   },
    134 ]
    135