-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcodemagic.yaml
34 lines (28 loc) · 1 KB
/
codemagic.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
workflows:
android-workflow:
name: Android Workflow
instance_type: mac_mini_m1 # Specify the instance type, example: mac_mini_m1
environment:
groups:
- default # Example group, add your API tokens here TESTAPPIO_API_TOKEN and TESTAPPIO_APP_ID
scripts:
# BUILD
- name: Build Android debug
script: |
./gradlew assembleDebug
# UPLOAD
- name: Upload to TestApp.io
script: |
#!/bin/bash
# Download and install the TestApp.io CLI
curl -Ls https://github.com/testappio/cli/releases/latest/download/install | bash
# Use the TestApp.io CLI to publish the app
ta-cli publish \
--api_token=$TESTAPPIO_API_TOKEN \
--app_id=$TESTAPPIO_APP_ID \
--release="android" \
--apk=./app/build/outputs/apk/debug/app-debug.apk \
--notify=true \
--git_release_notes=true \
--git_commit_id=true \
--source="Codemagic"