Skip to content

Commit 9dd7cae

Browse files
committed
chore(travis): fix the build
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.
1 parent 4a75392 commit 9dd7cae

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/travis/build.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ SCRIPT_DIR=$(dirname $0)
88
cd $SCRIPT_DIR/../..
99
source ./scripts/env.sh
1010

11+
# For some reason, this task fails on Travis when run as a part of the `gulp build`.
12+
# It runs `pub get` which fails to read the `pubspec.yml` (created earlier by the task).
13+
./node_modules/.bin/gulp modules/build.dart/pubspec
14+
1115
./node_modules/.bin/gulp build
1216

1317
pub install

0 commit comments

Comments
 (0)