未验证 提交 10effc7e 编写于 作者: L liyuqian 提交者: GitHub

Replace travis with cirrus (#5899)

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.
上级 cd85329b
......@@ -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
language: dart
dart:
- "dev/release/2.0.0-dev.63.0"
sudo: false
before_script:
- ./travis/setup.sh
script:
- ./travis/format.sh
- ./travis/build.sh
- ./travis/test.sh
# We don't build the engine or run the tests for the engine on Travis
# See testing/run_tests.sh if that's what you're looking for though.
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册