[go: nahoru, domu]

Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Enable testing on both master and stable #2197

Merged
merged 14 commits into from
Oct 16, 2019
Merged
30 changes: 25 additions & 5 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,25 +12,42 @@ task:
matrix:
- name: publishable
script: ./script/check_publish.sh
- name: test+format
- name: format
install_script:
- wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
- sudo apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-7 main"
- sudo apt-get update
- sudo apt-get install -y --allow-unauthenticated clang-format-7
format_script: ./script/incremental_build.sh format --travis --clang-format=clang-format-7
test_script: ./script/incremental_build.sh test
- name: test
env:
matrix:
CHANNEL: "master"
CHANNEL: "stable"
test_script:
- flutter channel $CHANNEL
- ./script/incremental_build.sh test
- name: analyze
script: ./script/incremental_build.sh analyze
- name: build_all_plugins_apk
script: ./script/build_all_plugins_app.sh apk
env:
matrix:
CHANNEL: "master"
CHANNEL: "stable"
script:
- flutter channel $CHANNEL
- ./script/build_all_plugins_app.sh apk
- name: build-apks+java-test+drive-examples
env:
matrix:
PLUGIN_SHARDING: "--shardIndex 0 --shardCount 2"
PLUGIN_SHARDING: "--shardIndex 1 --shardCount 2"
matrix:
CHANNEL: "master"
CHANNEL: "stable"
MAPS_API_KEY: ENCRYPTED[596a9f6bca436694625ac50851dc5da6b4d34cba8025f7db5bc9465142e8cd44e15f69e3507787753accebfc4910d550]
script:
- flutter channel $CHANNEL
# Unsetting CIRRUS_CHANGE_MESSAGE and CIRRUS_COMMIT_MESSAGE as they
# might include non-ASCII characters which makes Gradle crash.
# See: https://github.com/flutter/flutter/issues/24935
Expand All @@ -52,10 +69,13 @@ task:
image: mojave-xcode-10.2-flutter
setup_script:
- pod repo update
env:
matrix:
CHANNEL: "master"
CHANNEL: "stable"
upgrade_script:
- flutter channel master
- flutter channel $CHANNEL
- flutter upgrade
- git fetch origin master
activate_script:
- pub global activate flutter_plugin_tools
create_simulator_script:
Expand Down