blob: d88484ca72344f929059b83f3dbdbb75fe240fb4 [file] [log] [blame]
use_compute_credits: $CIRRUS_USER_COLLABORATOR == 'true'
task:
container:
dockerfile: .ci/Dockerfile
cpu: 4
memory: 8G
upgrade_script:
- flutter channel master
- flutter upgrade
- flutter doctor
- git fetch origin master
activate_script: pub global activate flutter_plugin_tools
matrix:
- name: analyze
script: ./script/incremental_build.sh analyze --custom-analysis=web_benchmarks/testing/test_app
- name: publishable
script: ./script/check_publish.sh
depends_on:
- analyze
- name: test+format
format_script: ./script/incremental_build.sh format --travis --clang-format=clang-format-5.0
test_script: ./script/incremental_build.sh test
depends_on:
- analyze
- name: build-apks+java-test
env:
matrix:
BUILD_SHARDING: "--shardIndex 0 --shardCount 2"
BUILD_SHARDING: "--shardIndex 1 --shardCount 2"
script:
- ./script/incremental_build.sh build-examples --apk
- ./script/incremental_build.sh java-test # must come after apk build
depends_on:
- analyze
- name: web_benchmarks_test
script:
- ./script/install_chromium.sh
- export CHROME_EXECUTABLE=$(pwd)/.chromium/chrome-linux/chrome
- flutter config --enable-web
- cd packages/web_benchmarks/testing/test_app
- flutter packages get
- cd ../..
- flutter packages get
- dart testing/web_benchmarks_test.dart
task:
name: build-ipas
osx_instance:
image: big-sur-xcode-12.4
env:
PATH: $PATH:/usr/local/bin
matrix:
BUILD_SHARDING: "--shardIndex 0 --shardCount 2"
BUILD_SHARDING: "--shardIndex 1 --shardCount 2"
setup_script:
- flutter channel master
- flutter upgrade
- flutter doctor
- git fetch origin master
- pub global activate flutter_plugin_tools
build_script:
- ./script/incremental_build.sh build-examples --ipa
task:
name: local_tests
osx_instance:
image: big-sur-xcode-12.4
env:
PATH: $PATH:/usr/local/bin
matrix:
CHANNEL: "master"
CHANNEL: "stable"
setup_script:
- git fetch origin master
- pub global activate flutter_plugin_tools
- brew install clang-format
upgrade_script:
- flutter channel $CHANNEL
- flutter upgrade
- flutter doctor
build_script:
- ./script/local_tests.sh