forked from stealthcopter/AndroidNetworkTools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.yml
More file actions
73 lines (61 loc) · 2.03 KB
/
Copy pathconfig.yml
File metadata and controls
73 lines (61 loc) · 2.03 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
version: 2
jobs:
build:
docker:
- image: circleci/android:api-25-alpha
environment:
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
steps:
- checkout
- restore_cache:
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
# Copy environment vars to gradle.properties
- run:
name: Copy Environment Vars
command: scripts/cp-env-to-properties.sh
# Decrypt any secret files / keys
- run:
name: Decrypt secret files
command: scripts/decrypt-secrets.sh
- run:
name: Download Dependencies
command: ./gradlew androidDependencies
- save_cache:
paths:
- ~/.gradle
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
- run:
name: Run Tests
command: ./gradlew test
#- store_test_results:
#path: app/build/reports
#destination: reports
- store_test_results:
name: Save Libary Unit Tests
path: library/build/reports
destination: reports
# Compile release apks
- run:
name: Compile APKs
command: ./gradlew assembleRelease
# Copy APK files to artifacts
- run:
name: Copy APK Files
command: |
set -xu
mkdir -p /tmp/artifacts
find . -name "*release.apk" -type f -exec echo {} \;
find . -name "*release.apk" -type f -exec cp {} /tmp/artifacts/ \;
# Save artifacts
- store_artifacts:
name: Save APK Files
path: /tmp/artifacts
destination: build
# Publish release to github if applicable
- run:
name: Publish release to Github
command: scripts/github-release.sh
# Upload to beta if requested and then publish webhooks
- run:
name: Publish to Google Play
command: scripts/upload-apks.sh