Skip to content

Commit

Permalink
Replace travis with cirrus (flutter#5899)
Browse files Browse the repository at this point in the history
Using a custom container image, we reduce the test time from 5 minutes to 2 minutes as we no longer run gclient sync from zero.

In the future, we may be able to cache the ninja output in the image (which probably gets updated daily) so we no longer compile from zero.
  • Loading branch information
liyuqian authored Jul 30, 2018
1 parent cd85329 commit 10effc7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
16 changes: 16 additions & 0 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,19 @@ task:
./flutter/tools/gn --android --unoptimized
ninja -C out/android_debug_unopt
format_and_dart_test_task:
container:
image: gcr.io/flutter-cirrus/build-engine-image:0.2

env:
CIRRUS_WORKING_DIR: "/tmp/github_repo"

replace_engine_script: |
cd $ENGINE_PATH/src
rm -r flutter
cp $CIRRUS_WORKING_DIR -r ./flutter
gclient sync
format_script: cd $ENGINE_PATH/src/flutter && ./travis/format.sh
build_script: cd $ENGINE_PATH/src/flutter && ./travis/build.sh
test_script: cd $ENGINE_PATH/src/flutter && ./travis/test.sh
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

0 comments on commit 10effc7

Please sign in to comment.