forked from spacecowboy/Feeder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
58 lines (50 loc) · 1.04 KB
/
.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
stages:
- build
- validate_deploy
- deploy
image: registry.gitlab.com/spacecowboy/feeder:builder
variables:
GIT_SUBMODULE_STRATEGY: recursive
cache:
key: "uber"
paths:
- .gradle/caches
- .gradle/wrapper
lint:
stage: build
script:
- source devenv && ./gradlew :app:lint
needs: []
test:
stage: build
script:
- source devenv && ./gradlew test :jsonfeed-parser:check
needs: []
compile:
stage: build
script:
- source devenv && ./gradlew assembleDebugMini packageDebugAndroidTest
needs: []
artifacts:
paths:
- app/build/outputs/
- build/logs/
validate_deployment:
stage: validate_deploy
script:
- source devenv && ./deploy_playstore.sh --dry-run
needs: []
only:
- compose
- master
- tags
deploy_playstore:
stage: deploy
script:
- source devenv && ./deploy_playstore.sh
needs: ["validate_deployment", "compile", "lint", "test"]
only:
- tags
environment:
name: Play
url: https://play.google.com/store/apps/details?id=com.nononsenseapps.feeder.play