-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcodemagic.yaml
44 lines (44 loc) · 1.35 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
35
36
37
38
39
40
41
42
43
44
workflows:
my-workflow:
name: lambda test
instance_type: mac_mini
max_build_duration: 60
environment:
groups:
- keystore_credentials
- lambda_key
vars:
PUBLIC_ENV_VAR: "value here"
flutter: stable
xcode: latest
cache:
cache_paths:
- ~/.pub-cache
triggering:
events:
- push
branch_patterns:
- pattern: '*'
include: true
source: true
cancel_previous_builds: false
scripts:
- name: Unit tests
script: |
mkdir -p test-results
flutter test test --machine > test-results/flutter.json
test_report: test-results/flutter.json
- name: Build APK with Flutter
script: |
echo $CM_KEYSTORE | base64 --decode > $CM_KEYSTORE_PATH # Not required if using team code signing identities
cd . && flutter build apk --release
- name: Submitting app to LambdaTest
script: |
cd ./build/app/outputs/apk/release
curl --location --request POST "https://manual-api.lambdatest.com/app/upload/realDevice" --header "Authorization: Basic $LAMBDATEST " --form "name='lambda1'" --form "appFile=@app-release.apk"
artifacts:
- build/**/outputs/apk/**/*.apk
publishing:
email:
recipients:
- clsyfriday@gmail.com