| task: |
| container: |
| image: cirrusci/flutter:latest |
| cpu: 4 |
| memory: 8G |
| upgrade_script: |
| - flutter channel master |
| - flutter upgrade |
| - git fetch origin master |
| activate_script: pub global activate flutter_plugin_tools |
| matrix: |
| - name: publishable |
| script: ./script/check_publish.sh |
| - name: test+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: 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: |
| # 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 |
| # This is a temporary workaround until we figure how to properly configure |
| # a UTF8 locale on Cirrus (or until the Gradle bug is fixed). |
| # TODO(amirh): Set the locale to UTF8. |
| - echo "$CIRRUS_CHANGE_MESSAGE" > /tmp/cirrus_change_message.txt |
| - echo "$CIRRUS_COMMIT_MESSAGE" > /tmp/cirrus_commit_message.txt |
| - export CIRRUS_CHANGE_MESSAGE="" |
| - export CIRRUS_COMMIT_MESSAGE="" |
| - ./script/incremental_build.sh build-examples --apk |
| - ./script/incremental_build.sh java-test # must come after apk build |
| - export CIRRUS_CHANGE_MESSAGE=`cat /tmp/cirrus_change_message.txt` |
| - export CIRRUS_COMMIT_MESSAGE=`cat /tmp/cirrus_commit_message.txt` |
| |
| task: |
| name: build-ipas |
| osx_instance: |
| image: high-sierra-xcode-9.4.1 |
| 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 |
| - git fetch origin master |
| - 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 |