AndroidAPS/.circleci/config.yml

53 lines
2.1 KiB
YAML
Raw Normal View History

2021-08-06 14:13:28 +02:00
# Use the latest 2.1 version of CircleCI pipeline process engine.
# See: https://circleci.com/docs/2.0/configuration-reference
version: 2.1
# Orbs are reusable packages of CircleCI configuration that you may share across projects, enabling you to create encapsulated, parameterized commands, jobs, and executors that can be used across multiple projects.
orbs:
2023-07-20 09:55:30 +02:00
android: circleci/android@2.3.0
2023-04-20 10:30:42 +02:00
codecov: codecov/codecov@3.2.4
2021-08-06 14:13:28 +02:00
jobs:
# Below is the definition of your job to build and test your app, you can rename and customize it as you want.
build-and-test:
# These next lines define the Android machine image executor: https://circleci.com/docs/2.0/executor-types/
executor:
name: android/android-machine
2023-07-20 09:55:30 +02:00
resource-class: large
tag: 2023.07.1
2021-08-06 14:13:28 +02:00
steps:
- checkout
2023-07-20 09:55:30 +02:00
- android/change-java-version:
java-version: 17
2023-10-22 00:11:14 +02:00
- android/start-emulator-and-run-tests:
system-image: system-images;android-29;google_apis;x86
2023-10-14 21:26:31 +02:00
# Compile while the emulator starts to use the time.
2023-10-22 00:11:14 +02:00
post-emulator-launch-assemble-command: ./gradlew compileFullDebugUnitTestSources compileFullDebugAndroidTestSources
test-command: ./gradlew connectedFullDebugAndroidTest
2021-08-06 14:13:28 +02:00
- android/run-tests:
2022-02-09 22:45:05 +01:00
test-command: ./gradlew testFullDebugUnitTest
- android/run-tests:
2022-11-04 08:37:18 +01:00
test-command: ./gradlew --stacktrace jacocoAllDebugReport
2021-08-06 14:13:28 +02:00
# And finally run the release build
# - run:
# name: Assemble release build
# command: |
# ./gradlew assembleRelease
- codecov/upload:
2022-02-10 17:05:17 +01:00
file: './build/reports/jacoco/jacocoAllDebugReport/jacocoAllDebugReport.xml'
2021-08-06 14:13:28 +02:00
workflows:
# Below is the definition of your workflow.
# Inside the workflow, you provide the jobs you want to run, e.g this workflow runs the build-and-test job above.
# CircleCI will run this workflow on every commit.
# For more details on extending your workflow, see the configuration docs: https://circleci.com/docs/2.0/configuration-reference/#workflows
dotests:
jobs:
2023-04-20 10:30:42 +02:00
- build-and-test