From 9dd7cae9fd835faa5698006a8e243d7cc5b3e53f Mon Sep 17 00:00:00 2001 From: Vojta Jina Date: Wed, 5 Nov 2014 11:18:40 -0800 Subject: [PATCH] chore(travis): fix the build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I don’t know what the issue really is. There is some weird race condition, where the task copies the file (`pubspec.yml`) and then start `pub get` which reads that file and the file is not there or is empty. I have no idea why moving this task into a separate process fixes the issue but I don’t wanna waste more time on it. --- scripts/travis/build.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/travis/build.sh b/scripts/travis/build.sh index 95e817aed3..f4c884e73c 100755 --- a/scripts/travis/build.sh +++ b/scripts/travis/build.sh @@ -8,6 +8,10 @@ SCRIPT_DIR=$(dirname $0) cd $SCRIPT_DIR/../.. source ./scripts/env.sh +# For some reason, this task fails on Travis when run as a part of the `gulp build`. +# It runs `pub get` which fails to read the `pubspec.yml` (created earlier by the task). +./node_modules/.bin/gulp modules/build.dart/pubspec + ./node_modules/.bin/gulp build pub install