Fix for travis

Seeing a break on runhooks after the switch to GN (I think).  We don't
actually need to runhooks if we're not doing a full SDK build - except
for pulling unittest.  For the full build config, falling back to GYP
for now.

TBR=rnystrom@google.com,whesse@google.com

Review-Url: https://codereview.chromium.org/2618143003 .
This commit is contained in:
Vijay Menon 2017-01-07 07:33:31 -08:00
parent 05db16f2c8
commit c1725c5b7f

View file

@ -43,13 +43,16 @@ before_install:
- git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
- export PATH=`pwd`/depot_tools:"$PATH"
# Checkout everything if we're building the SDK
# Checkout everything to pull in sdk and third_party dart packages
- cd ..
- 'gclient config --spec=''solutions = [ { "name": "sdk", "url": "git@github.com:dart-lang/sdk.git", "deps_file": "DEPS", "managed": False } ]'''
- gclient sync
- gclient sync -n
- download_from_google_storage --no_auth --no_resume --bucket dart-dependencies --extract -s sdk/third_party/pkg/unittest.tar.gz.sha1
- cd sdk
# If a C++ compiler is set, build the SDK - else use the preinstalled SDK instead.
# If a C++ compiler is set, run hooks and build the SDK - else use the preinstalled SDK instead.
- export DART_USE_GYP=1
- if [ "$CXX" ]; then gclient runhooks ; fi
- if [ "$CXX" ]; then ./tools/build.py -m release create_sdk ; fi
- if [ "$CXX" ]; then export PATH=`pwd`/out/ReleaseX64/dart-sdk/bin:"$PATH" ; fi
- dart --version