Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 29 additions & 3 deletions .cirrus.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
container:
image: cirrusci/flutter:latest

task:
container:
image: cirrusci/flutter:latest
upgrade_script:
- flutter channel master
- flutter upgrade
Expand All @@ -18,6 +17,33 @@ task:
- name: analyze
script: ./script/incremental_build.sh analyze
- name: build-apks+java-test
env:
matrix:
PLUGIN_SHARDING: "--shardIndex 0 --shardCount 2"
PLUGIN_SHARDING: "--shardIndex 1 --shardCount 2"
script:
- ./script/incremental_build.sh build-examples --apk
- ./script/incremental_build.sh java-test # must come after apk build

task:
name: build-ipas
osx_instance:
image: high-sierra-xcode-9.4
env:
PATH: $PATH:/usr/local/bin
matrix:
PLUGIN_SHARDING: "--shardIndex 0 --shardCount 2"
PLUGIN_SHARDING: "--shardIndex 1 --shardCount 2"
setup_script:
- brew update
- brew install libimobiledevice
- brew install ideviceinstaller
- brew install ios-deploy
- pod repo update
- git clone https://github.com/flutter/flutter.git
- export PATH=`pwd`/flutter/bin:`pwd`/flutter/bin/cache/dart-sdk/bin:$PATH
- flutter doctor
- pub global activate flutter_plugin_tools
build_script:
- export PATH=`pwd`/flutter/bin:`pwd`/flutter/bin/cache/dart-sdk/bin:$PATH
- ./script/incremental_build.sh build-examples --ipa
18 changes: 9 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ matrix:
- flutter doctor
- pub global activate flutter_plugin_tools
script:
- ./script/plugin_tools.sh analyze
- ./script/incremental_build.sh analyze
# Job 2) Check format and run tests
- os: linux
env:
Expand All @@ -42,8 +42,8 @@ matrix:
- flutter doctor
- pub global activate flutter_plugin_tools
script:
- ./script/plugin_tools.sh format --travis --clang-format=clang-format-5.0
- ./script/plugin_tools.sh test
- ./script/incremental_build.sh format --travis --clang-format=clang-format-5.0
- ./script/incremental_build.sh test
# Job 3.1) Build example APKs and run Java tests, shard 1/2
- os: linux
env:
Expand All @@ -65,8 +65,8 @@ matrix:
- export ANDROID_HOME=`pwd`/android-sdk
- export PATH=`pwd`/flutter/bin:`pwd`/flutter/bin/cache/dart-sdk/bin:$PATH
script:
- ./script/plugin_tools.sh build-examples --apk
- ./script/plugin_tools.sh java-test # must come after apk build
- ./script/incremental_build.sh build-examples --apk
- ./script/incremental_build.sh java-test # must come after apk build
# Job 3.2) Build example APKs and run Java tests, shard 2/2
- os: linux
env:
Expand All @@ -88,8 +88,8 @@ matrix:
- export ANDROID_HOME=`pwd`/android-sdk
- export PATH=`pwd`/flutter/bin:`pwd`/flutter/bin/cache/dart-sdk/bin:$PATH
script:
- ./script/plugin_tools.sh build-examples --apk
- ./script/plugin_tools.sh java-test # must come after apk build
- ./script/incremental_build.sh build-examples --apk
- ./script/incremental_build.sh java-test # must come after apk build
# Job 4.1) Build example IPAs, shard 1/2
- os: osx
env:
Expand All @@ -101,7 +101,7 @@ matrix:
- ./script/before_build_ipas.sh
- export PATH=`pwd`/flutter/bin:`pwd`/flutter/bin/cache/dart-sdk/bin:$PATH
script:
- ./script/plugin_tools.sh build-examples --ipa
- ./script/incremental_build.sh build-examples --ipa
# Job 4.2) Build example IPAs, shard 2/2
- os: osx
env:
Expand All @@ -113,7 +113,7 @@ matrix:
- ./script/before_build_ipas.sh
- export PATH=`pwd`/flutter/bin:`pwd`/flutter/bin/cache/dart-sdk/bin:$PATH
script:
- ./script/plugin_tools.sh build-examples --ipa
- ./script/incremental_build.sh build-examples --ipa

cache:
directories:
Expand Down
4 changes: 2 additions & 2 deletions script/incremental_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ BRANCH_NAME=$(git rev-parse --abbrev-ref HEAD)

if [ "${BRANCH_NAME}" = "master" ]; then
echo "Running for all packages"
pub global run flutter_plugin_tools "$@"
pub global run flutter_plugin_tools "$@" $PLUGIN_SHARDING
else
# Make sure there is up-to-date master.
git fetch origin master
Expand All @@ -27,7 +27,7 @@ else

if [ "${FLUTTER_CHANGED_PACKAGES}" = "" ] || [ $FLUTTER_CHANGED_GLOBAL -gt 0 ]; then
echo "Running for all packages"
pub global run flutter_plugin_tools "$@"
pub global run flutter_plugin_tools "$@" $PLUGIN_SHARDING
else
echo "Running only for $FLUTTER_CHANGED_PACKAGES"
pub global run flutter_plugin_tools "$@" --plugins=$FLUTTER_CHANGED_PACKAGES
Expand Down
17 changes: 0 additions & 17 deletions script/plugin_tools.sh

This file was deleted.