I'm trying to automate testing with firebase Test Lab with every commit to a certain branch
we are using google cloud build for CI/CD.. and my cloudbuild.yaml file has the following commands :
- name: 'gcr.io/$PROJECT_ID/flutter'
id: 'build'
entrypoint: '/bin/bash'
args:
- '-c'
- |
flutter channel beta
flutter build apk
cd android
./gradlew app:assembleAndroidTest
./gradlew app:assembleDebug -Ptarget=./integration_test/app_test.dart
- name: gcr.io/cloud-builders/gcloud
id: "firebase testlab"
entrypoint: '/bin/bash'
args:
- '-c'
- |
<activating google-service-account and setting the firebase project>
gcloud firebase test android run --type instrumentation
--app build/app/outputs/apk/debug/app-debug.apk
--test build/app/outputs/apk/androidTest/debug/app-debug-androidTest.apk
--timeout 2m
When I run these exact same commands from my local machine, it uploads to testlab successfully and my tests pass.
But when running from he pipeline it fails with the following logs :
test details from logs
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…