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