forked from L4Digital/FastScroll
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
57 lines (51 loc) · 872 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
image: randr0id/android-docker
cache:
key: ${CI_PROJECT_ID}
paths:
- .gradle/
stages:
- test
- build
before_script:
- export GRADLE_USER_HOME=$(pwd)/.gradle
- chmod +x ./gradlew
lint_test:
stage: test
except:
- tags
tags:
- docker
artifacts:
when: always
expire_in: 6 months
paths:
- fastscroll/build/reports/
script:
- ./gradlew lintRelease
release_build:
stage: build
only:
- schedules
- web
- master
tags:
- docker
artifacts:
expire_in: 1 year
paths:
- fastscroll/build/outputs/aar/
- fastscroll/build/publications/aar/
script:
- ./gradlew generatePomFileForAarPublication
- ./gradlew assembleRelease
merge_build:
stage: build
except:
- schedules
- web
- tags
- master
tags:
- docker
script:
- ./gradlew assembleRelease