-
Notifications
You must be signed in to change notification settings - Fork 11
/
.gitlab-ci.yml
62 lines (56 loc) · 951 Bytes
/
.gitlab-ci.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
55
56
57
58
59
60
61
62
image: circleci/android:api-29
cache:
key: ${CI_PROJECT_ID}
paths:
- .gradle
stages:
- build
- lint
- test
# Default configuration inherited by other jobs.
.default: &default
tags:
- docker, halcyon
build:
<<: *default
stage: build
script:
- ./gradlew assemble
- ./gradlew podspec
only:
- master
- /^release.*$/
- merge_requests
artifacts:
paths:
- app/build/outputs/apk/debug/
expire_in: 1 days
test:
<<: *default
stage: test
script:
- ./gradlew test
only:
- master
- develop
- /^release.*$/
- merge_requests
artifacts:
when: always
reports:
junit: build/test-results/test/**/TEST-*.xml
lint:
<<: *default
stage: lint
before_script: [ ]
script:
- ./gradlew lint
only:
- master
- develop
- /^release.*$/
- merge_requests
artifacts:
paths:
- /build/reports/lint-results.html
expire_in: 5 days