| gcp_credentials: ENCRYPTED[!0e63b52bd7e4fda1cd7b7bf2b4fe515a27fadbeaced01f5ad8b699b81d3611ed64c5d3271bcd8426dd914ef41cba48a0!] |
| |
| # LINUX |
| task: |
| gke_container: |
| dockerfile: "ci/docker/build/Dockerfile" |
| builder_image_name: docker-builder # gce vm image |
| builder_image_project: flutter-cirrus |
| cluster_name: build-32-cluster |
| zone: us-central1-a |
| namespace: default |
| cpu: 30 # can't use all 30-cores; system pods needs cores too |
| memory: 100Gb # similarly, can't use all 100Gb memory |
| env: |
| CIRRUS_DOCKER_CONTEXT: "ci/docker/build" |
| CIRRUS_WORKING_DIR: "/tmp/github_repo" |
| ENGINE_PATH: "/tmp/clean_engine" |
| DEPOT_TOOLS: "/tmp/depot_tools" |
| FLUTTER_ENGINE: "/tmp/clean_engine/src" |
| FRAMEWORK_PATH: "/tmp/master_framework" |
| PATH: "$FLUTTER_ENGINE/third_party/dart/tools/sdks/dart-sdk/bin:$DEPOT_TOOLS:$PATH" |
| USE_ANDROID: "False" |
| setup_script: | |
| git clone --depth 1 https://chromium.googlesource.com/chromium/tools/depot_tools.git $DEPOT_TOOLS |
| mkdir -p $ENGINE_PATH/src |
| echo 'solutions = [{"managed": False,"name": "src/flutter","url": "git@github.com:flutter/engine.git","deps_file": "DEPS", "custom_vars": {"download_android_deps" : ' $USE_ANDROID ', "download_windows_deps" : False,},},]' > $ENGINE_PATH/.gclient |
| cd $ENGINE_PATH/src |
| rm -rf flutter |
| rm -rf out |
| mv $CIRRUS_WORKING_DIR flutter |
| gclient sync |
| matrix: |
| - name: build_and_test_linux_unopt_debug |
| compile_host_script: | |
| cd $ENGINE_PATH/src |
| ./flutter/tools/gn --unoptimized --full-dart-sdk |
| ninja -C out/host_debug_unopt |
| test_host_script: | |
| cd $ENGINE_PATH/src |
| ./flutter/testing/run_tests.sh host_debug_unopt |
| fetch_framework_script: | |
| mkdir -p $FRAMEWORK_PATH |
| cd $FRAMEWORK_PATH |
| git clone https://github.com/flutter/flutter.git |
| analyze_framework_script: | |
| cd $FRAMEWORK_PATH/flutter |
| rm -rf bin/cache/pkg/sky_engine |
| mkdir -p bin/cache/pkg/ |
| cp -r $ENGINE_PATH/src/out/host_debug_unopt/gen/dart-pkg/sky_engine bin/cache/pkg/ |
| bin/flutter update-packages --local-engine=host_debug_unopt |
| bin/flutter analyze --flutter-repo --local-engine=host_debug_unopt |