Skip to content

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
djette-st committed Dec 3, 2023
1 parent bf43a72 commit db52b88
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions bitrise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,71 @@ workflows:
<!--
- update_comment_tag: testify-flix
- personal_access_token: "$GITHUB_TOKEN"
_testFlixLibrary:
summary: Run your Android unit tests and get the test report.
description: The workflow will first clone your Git repository, cache your Gradle
dependencies, install Android tools, run your Android unit tests and save the
test report.
steps:
- android-unit-test@1:
inputs:
- project_location: "$PROJECT_LOCATION"
- variant: Debug
- module: FlixLibrary
- cache_level: none
- android-build-for-ui-testing@0:
inputs:
- variant: Debug
- module: FlixLibrary
- git::https://github.com/ndtp/bitrise-step-android-testify.git@main:
timeout: 1800
title: Run Screenshot Tests
inputs:
- adb_command: "./gradlew FlixLibrary:screenshotTest"
- module: ":FlixLibrary"
- app_apk: "./Samples/Flix/FlixLibrary/build/outputs/apk/androidTest/debug/FlixLibrary-debug-androidTest.apk"
- app_package: dev.testify.samples.flix.library.test
- test_apk: "./Samples/Flix/FlixLibrary/build/outputs/apk/androidTest/debug/FlixLibrary-debug-androidTest.apk"
- test_package: dev.testify.samples.flix.library.test
- test_runner: androidx.test.runner.AndroidJUnitRunner
- verbose: true
- [email protected]:
is_always_run: true
timeout: 120
inputs:
- test_name: Flix Libray Screenshot Test
- search_pattern: "**test_result_**.xml**"
- deploy-to-bitrise-io@2:
inputs:
- notify_user_groups: none
- script@1:
is_always_run: true
inputs:
- content: |-
#!/usr/bin/env bash
set -e
set -x
if [ "$BITRISE_BUILD_STATUS" == 0 ]; then
STATUS=":white_check_mark: Success!"
MESSAGE=""
else
STATUS=":x: Failed!"
MESSAGE="Please verify the screenshot tests and update them as necessary"
fi
envman add --key LAST_COMMIT --value `git log --format="%H" -n 1`
envman add --key TESTIFY_STATUS --value "$STATUS"
envman add --key TESTIFY_MESSAGE --value "$MESSAGE"
title: Prepare PR comment
- comment-on-github-pull-request@0:
is_always_run: true
inputs:
- body: |-
### $TESTIFY_STATUS - <a href="https://app.bitrise.io/app/8bee1dcb-c321-4d26-a54e-0123ee4df70f/addon/addons-testing/login_page?build_slug=$BITRISE_BUILD_SLUG">Flix Library screenshot test results</a>
$TESTIFY_MESSAGE
###### [View build](https://app.bitrise.io/build/$BITRISE_BUILD_SLUG) for commit $LAST_COMMIT
<!--
- update_comment_tag: testify-flix-library
- personal_access_token: "$GITHUB_TOKEN"
meta:
bitrise.io:
stack: linux-docker-android-20.04
Expand Down

0 comments on commit db52b88

Please sign in to comment.