forked from se-bastiaan/TorrentStream-Android
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathcircle.yml
54 lines (53 loc) · 1.55 KB
/
circle.yml
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
version: 2
jobs:
build:
working_directory: ~/code
docker:
- image: circleci/android:api-27-alpha
environment:
JVM_OPTS: -Xmx3200m
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
steps:
- checkout
- restore_cache:
key: jars-{{ checksum "build.gradle" }}-{{ checksum "library/build.gradle" }}-{{ checksum "sample/build.gradle" }}
- run:
name: Download Dependencies
command: ./gradlew androidDependencies
- save_cache:
paths:
- ~/.gradle
key: jars-{{ checksum "build.gradle" }}-{{ checksum "library/build.gradle" }}-{{ checksum "sample/build.gradle" }}
- run:
name: Run Tests
command: ./gradlew check
deploy:
working_directory: ~/code
docker:
- image: circleci/android:api-27-alpha
environment:
JVM_OPTS: -Xmx3200m
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'
steps:
- checkout
- run:
name: Download Dependencies
command: ./gradlew :torrent-stream:androidDependencies
- run:
name: Build library
command: ./gradlew :torrent-stream:bintrayUpload
- store_artifacts:
path: library/build/outputs/aar/
destination: aar
workflows:
version: 2
build_deploy:
jobs:
- build
- deploy:
requires:
- build
filters:
branches:
only:
- master