diff --git a/.cirrus.yml b/.cirrus.yml index e0093bb766..6d17b0daf2 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -24,8 +24,8 @@ task: - name: build-apks+java-test env: matrix: - PLUGIN_SHARDING: "--shardIndex 0 --shardCount 2" - PLUGIN_SHARDING: "--shardIndex 1 --shardCount 2" + 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 @@ -37,8 +37,8 @@ task: env: PATH: $PATH:/usr/local/bin matrix: - PLUGIN_SHARDING: "--shardIndex 0 --shardCount 2" - PLUGIN_SHARDING: "--shardIndex 1 --shardCount 2" + BUILD_SHARDING: "--shardIndex 0 --shardCount 2" + BUILD_SHARDING: "--shardIndex 1 --shardCount 2" setup_script: - brew update - brew install libimobiledevice diff --git a/script/incremental_build.sh b/script/incremental_build.sh index c3a3941541..283c9a550e 100755 --- a/script/incremental_build.sh +++ b/script/incremental_build.sh @@ -15,15 +15,15 @@ fi BRANCH_NAME="${BRANCH_NAME:-"$(git rev-parse --abbrev-ref HEAD)"}" if [[ "${BRANCH_NAME}" == "master" ]]; then echo "Running for all packages" - (cd "$REPO_DIR" && pub global run flutter_plugin_tools "${ACTIONS[@]}" $PLUGIN_SHARDING) + (cd "$REPO_DIR" && pub global run flutter_plugin_tools "${ACTIONS[@]}" $BUILD_SHARDING) else # Sets CHANGED_PACKAGES check_changed_packages if [[ "$CHANGED_PACKAGES" == "" ]]; then echo "Running for all packages" - (cd "$REPO_DIR" && pub global run flutter_plugin_tools "${ACTIONS[@]}" $PLUGIN_SHARDING) + (cd "$REPO_DIR" && pub global run flutter_plugin_tools "${ACTIONS[@]}" $BUILD_SHARDING) else - (cd "$REPO_DIR" && pub global run flutter_plugin_tools "${ACTIONS[@]}" --plugins="$CHANGED_PACKAGES" $PLUGIN_SHARDING) + (cd "$REPO_DIR" && pub global run flutter_plugin_tools "${ACTIONS[@]}" --plugins="$CHANGED_PACKAGES" $BUILD_SHARDING) fi fi