From 97978a70b54badc9d53faf132f104202d7563f11 Mon Sep 17 00:00:00 2001 From: liyuqian Date: Mon, 30 Jul 2018 12:00:31 -0700 Subject: [PATCH] Replace travis with cirrus (flutter/engine#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. --- engine/src/flutter/.cirrus.yml | 16 ++++++++++++++++ engine/src/flutter/.travis.yml | 13 ------------- 2 files changed, 16 insertions(+), 13 deletions(-) delete mode 100644 engine/src/flutter/.travis.yml diff --git a/engine/src/flutter/.cirrus.yml b/engine/src/flutter/.cirrus.yml index d4121214c8..537286988e 100644 --- a/engine/src/flutter/.cirrus.yml +++ b/engine/src/flutter/.cirrus.yml @@ -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 diff --git a/engine/src/flutter/.travis.yml b/engine/src/flutter/.travis.yml deleted file mode 100644 index 043404ff10..0000000000 --- a/engine/src/flutter/.travis.yml +++ /dev/null @@ -1,13 +0,0 @@ -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.