Skip to content

Commit

Permalink
Merge pull request #103 from checkout/feature/PIMOB-1325_PIMOB-1339_C…
Browse files Browse the repository at this point in the history
…I_and_PR_template_update

PIMOB-1325: PIMOB-1339: Update PR template and CI config
  • Loading branch information
maxim-nosov-cko authored Jul 26, 2022
2 parents 42707bc + 9ff3798 commit a5ac618
Show file tree
Hide file tree
Showing 3 changed files with 133 additions and 76 deletions.
22 changes: 0 additions & 22 deletions .circleci/config.yml

This file was deleted.

19 changes: 8 additions & 11 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
## Proposed changes

Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue.
## Issue

## Types of changes
Issue ticket number and link.

What types of changes does your code introduce to frames-android?
_Put an `x` in the boxes that apply_
## Proposed changes

* [ ] Bugfix (non-breaking change which fixes an issue)
* [ ] New feature (non-breaking change which adds functionality)
* [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue.

## Checklist

_Put an `x` in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code._

* [ ] Reviewers assigned
* [ ] I have performed a self-review of my code and manual testing
* [ ] Lint and unit tests pass locally with my changes
* [ ] I have added tests that prove my fix is effective or that my feature works
* [ ] I have added necessary documentation (if appropriate)
* [ ] I have added necessary documentation (if applicable)

## Further comments

If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...
If this is a relatively large or complex change, kick off the discussion by explaining why you choose the solution you did and what alternatives you considered, etc...
168 changes: 125 additions & 43 deletions bitrise.yml
Original file line number Diff line number Diff line change
@@ -1,90 +1,154 @@
---
format_version: '8'
default_step_lib_source: 'https://github.com/bitrise-io/bitrise-steplib.git'
format_version: '9'
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: android
trigger_map:
- push_branch: '*'
workflow: verification-quick
- push_branch: '*/*'
workflow: verification-quick
- pull_request_source_branch: '*'
- push_branch: release/4.0.0
workflow: verification-full-extra-lint
- push_branch: master
workflow: verification-full
- push_branch: "*"
workflow: verification-quick
- pull_request_source_branch: "*"
pull_request_target_branch: release/4.0.0
workflow: verification-full-extra-lint
- pull_request_source_branch: "*"
workflow: verification-full
workflows:
steps-finish:
steps:
- deploy-to-bitrise-io@1: {}
- deploy-to-bitrise-io@2: {}
- cache-push@2: {}
- slack@3:
inputs:
- text: $ANDROID_BUILDS_SLACK_TEXT
- channel_on_error: $ANDROID_BUILDS_SLACK_CHANNEL
- text_on_error: $ANDROID_BUILDS_SLACK_TEXT_ERROR
- channel: $ANDROID_BUILDS_SLACK_CHANNEL
- webhook_url: $ANDROID_BUILDS_SLACK_WEBHOOK_URL
- channel: "$ANDROID_BUILDS_SLACK_CHANNEL"
- text: "$BITRISE_APP_TITLE build Success"
- channel_on_error: "$ANDROID_BUILDS_SLACK_CHANNEL"
- text_on_error: "$BITRISE_APP_TITLE build Failed"
- webhook_url: "$ANDROID_BUILDS_SLACK_WEBHOOK_URL"
after_run: []
description: >-
Final steps for all workflows which completes Bitrise.io uploads and sends
a Slack notification
description: Final steps for all workflows which completes Bitrise.io uploads
and sends a Slack notification
steps-start:
steps:
- activate-ssh-key@4:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@4: {}
- git-clone@6: {}
- cache-pull@2: {}
- install-missing-android-tools@2:
- install-missing-android-tools@3:
inputs:
- gradlew_path: $PROJECT_LOCATION/gradlew
- android-build@0:
- gradlew_path: "$PROJECT_LOCATION/gradlew"
- android-build@1:
inputs:
- module: $MODULE
- variant: $VARIANT
- module: "$MODULE"
- variant: "$VARIANT"
after_run: []
description: First steps to initialise the workflow
verification-quick:
verification-full:
steps:
- android-lint@0:
inputs:
- variant: "$VARIANT"
is_always_run: true
- android-unit-test@1:
inputs:
- project_location: $PROJECT_LOCATION
- variant: $VARIANT
- project_location: "$PROJECT_LOCATION"
- variant: "$VARIANT"
is_always_run: true
- gradle-runner@2:
inputs:
- gradle_task: assembleAndroidTest
is_always_run: true
title: Gradle Runner - Build Android Test
after_run:
- steps-finish
description: >-
## Performs validation checks to match the current implementation on
CircelCi
description: |2-
## Performs all validation checks
The following checks are performed
- Build
- Lint Checks
- Unit Tests
- Instrumentation Tests
before_run:
- steps-start
verification-full:
verification-full-extra-lint:
steps:
- android-lint@0:
inputs:
- variant: $VARIANT
- variant: "$VARIANT"
is_always_run: true
- android-unit-test@1:
inputs:
- project_location: $PROJECT_LOCATION
- variant: $VARIANT
- project_location: "$PROJECT_LOCATION"
- variant: "$VARIANT"
is_always_run: true
- gradle-runner@1:
- gradle-runner@2:
inputs:
- gradle_task: assembleDebugAndroidTest
- gradle_task: assembleAndroidTest
is_always_run: true
title: Gradle Runner - Build Android Test
- virtual-device-testing-for-android@1:
- script@1:
title: Lint
inputs:
- test_type: instrumentation
- inst_use_orchestrator: 'true'
- test_devices: 'Pixel2,28,en,portrait'
is_always_run: true
- content: |-
#!/usr/bin/env bash
# fail if any commands fails
set -e
# make pipelines' return status equal the last command to exit with a non-zero status, or zero if all commands exit successfully
set -o pipefail
# debug log
set -x
# write your script here
./gradlew clean lint
# or run a script from your repository, like:
# bash ./path/to/script.sh
# not just bash, e.g.:
# ruby ./path/to/script.rb
- script@1:
title: Detekt
inputs:
- content: |-
#!/usr/bin/env bash
# fail if any commands fails
set -e
# make pipelines' return status equal the last command to exit with a non-zero status, or zero if all commands exit successfully
set -o pipefail
# debug log
set -x
# write your script here
./gradlew detekt
# or run a script from your repository, like:
# bash ./path/to/script.sh
# not just bash, e.g.:
# ruby ./path/to/script.rb
- script@1:
title: Ktlint
inputs:
- content: |-
#!/usr/bin/env bash
# fail if any commands fails
set -e
# make pipelines' return status equal the last command to exit with a non-zero status, or zero if all commands exit successfully
set -o pipefail
# debug log
set -x
# write your script here
./gradlew ktlint
# or run a script from your repository, like:
# bash ./path/to/script.sh
# not just bash, e.g.:
# ruby ./path/to/script.rb
after_run:
- steps-finish
description: |-
description: |2-
## Performs all validation checks
Expand All @@ -95,11 +159,29 @@ workflows:
- Instrumentation Tests
before_run:
- steps-start
verification-quick:
steps:
- android-unit-test@1:
inputs:
- project_location: "$PROJECT_LOCATION"
- variant: "$VARIANT"
is_always_run: true
after_run:
- steps-finish
description: |2-
## Performs validation checks to match the current implementation on CircelCi
The following checks are performed
- Build
- Unit Tests
before_run:
- steps-start
app:
envs:
- opts:
is_expand: false
PROJECT_LOCATION: .
PROJECT_LOCATION: "."
- opts:
is_expand: false
MODULE: app
Expand All @@ -108,4 +190,4 @@ app:
VARIANT: debug
- opts:
is_expand: false
GRADLEW_PATH: ./gradlew
GRADLEW_PATH: "./gradlew"

0 comments on commit a5ac618

Please sign in to comment.