Skip to content

Commit 5c6fd21

Browse files
authored
Merge pull request #885 from Neamar/automated-tests
Make the CI great again
2 parents 96262e6 + 23b9619 commit 5c6fd21

File tree

2 files changed

+40
-43
lines changed

2 files changed

+40
-43
lines changed

.circleci/config.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
version: 2
2+
jobs:
3+
build:
4+
working_directory: ~/code
5+
docker:
6+
- image: circleci/android:api-27-alpha
7+
environment:
8+
JVM_OPTS: -Xmx3200m
9+
steps:
10+
- checkout
11+
- restore_cache:
12+
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
13+
# - run:
14+
# name: Chmod permissions #if permission for Gradlew Dependencies fail, use this.
15+
# command: sudo chmod +x ./gradlew
16+
- run:
17+
name: Download Dependencies
18+
command: ./gradlew androidDependencies
19+
- save_cache:
20+
paths:
21+
- ~/.gradle
22+
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
23+
- run:
24+
name: Run Lint
25+
command: ./gradlew lint
26+
- store_artifacts:
27+
path: app/build/reports
28+
destination: reports
29+
- run:
30+
name: Generate debug APK
31+
command: ./gradlew assembleDebug
32+
- store_artifacts:
33+
path: app/build/outputs/apk/debug
34+
destination: debug-apk
35+
- run:
36+
name: Generate release APK
37+
command: ./gradlew assembleRelease
38+
- store_artifacts:
39+
path: app/build/outputs/apk/release
40+
destination: release-apk

circle.yml

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)