This repository was archived by the owner on Sep 1, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathconfig.yml
More file actions
55 lines (43 loc) · 2.02 KB
/
config.yml
File metadata and controls
55 lines (43 loc) · 2.02 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
# configuration pilfered from https://circleci.com/docs/2.0/language-android/
version: 2
jobs:
build:
environment:
TARGET_SDK_VERSION: 26
# https://circleci.com/docs/2.0/configuration-reference/#docker--machine-executor
docker:
- image: circleci/android:api-${TARGET_SDK_VERSION}-alpha
- image: ghost:2-alpine # test against latest 2.x version of Ghost
steps:
# https://circleci.com/docs/2.0/configuration-reference/#checkout
- checkout
# https://circleci.com/docs/2.0/configuration-reference/#restore_cache
- restore_cache:
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
- run:
name: Setup Firebase configuration (google-services.json)
command: echo $GOOGLE_SERVICES_JSON_BASE64 | base64 -di > app/google-services.json
- run:
name: Download Dependencies
command: ./gradlew androidDependencies
# https://circleci.com/docs/2.0/configuration-reference/#save_cache
- save_cache:
paths:
- ~/.gradle
key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
- run:
name: Build Debug APK # not a release build since Fabric API keys are not available in CI
command: ./gradlew assembleDebug -PdisablePreDex --console=plain
- run:
name: Setup Ghost
command: curl -vvvv --fail -d 'setup[0][name]=User' -d 'setup[0][email]=user@example.com' -d 'setup[0][password]=randomtestpwd' -d 'setup[0][blogTitle]=My Blog' http://localhost:2368/ghost/api/v0.1/authentication/setup/
- run:
name: Run tests
command: ./gradlew testDebug -PdisablePreDex --console=plain
# https://circleci.com/docs/2.0/configuration-reference/#store_artifacts
- store_artifacts:
path: app/build/reports
destination: reports
# https://circleci.com/docs/2.0/configuration-reference/#store_test_results
- store_test_results:
path: app/build/test-results