Files
flutter-docker-image/test/android.yml
T
2026-01-28 23:33:57 +01:00

98 lines
2.4 KiB
YAML

schemaVersion: 2.0.0
commandTests:
- name: Gradle, licenses and platforms are already downloaded
setup:
- - flutter
- create
- test_app
teardown:
- - rm
- -r
- test_app
command: bash
args:
- -c
- |
cd test_app/android \
&& timeout --preserve-status 480s ./gradlew bundleRelease
excludedOutput:
- Checking
- Installing
- Downloading
- name: Android SDK build tools is pinned
command: ls
args:
- /home/flutter/sdks/android-sdk/build-tools
expectedOutput:
- 35.0.0
- name: Android NDK is pinned
command: ls
args:
- /home/flutter/sdks/android-sdk/ndk
expectedOutput:
- 28.2.13676358
- name: CMake is pinned
command: ls
args:
- /home/flutter/sdks/android-sdk/cmake
expectedOutput:
- 3.22.1
- name: Android SDK build tools directory only has one directory
command: bash
args:
- -c
- |
ls /home/flutter/sdks/android-sdk/build-tools \
| wc -l
- name: Fastlane can run lanes
setup:
- - flutter
- create
- test_app
- - mkdir
- -p
- /home/flutter/test_app/android/fastlane
- - touch
- /home/flutter/test_app/android/fastlane/Appfile
- - sh
- -c
- |-
echo 'lane :hello do
puts "Hello"
end' > /home/flutter/test_app/android/fastlane/Fastfile
- - touch
- /home/flutter/test_app/android/fastlane/Pluginfile
teardown:
- - rm
- -r
- test_app
command: bash
args:
- -c
- |
cd test_app/android \
&& timeout --preserve-status 240s fastlane hello
excludedOutput:
- Checking
- Installing
- Downloading
- name: Fastlane usage is opted-out
command: fastlane
args:
- action
- debug
excludedOutput:
- Sending anonymous analytics information
fileContentTests:
- name: Android SDK Command-line Tools is version 20.0
path: /home/flutter/sdks/android-sdk/cmdline-tools/latest/source.properties
expectedContents:
- |-
Pkg.Revision=20.0
Pkg.Path=cmdline-tools;20.0
Pkg.Desc=Android SDK Command-line Tools
- name: Dart and Flutter analytics are disabled
path: /home/flutter/.dart-tool/dart-flutter-telemetry.config
expectedContents:
- reporting=0