-
-
Notifications
You must be signed in to change notification settings - Fork 96
/
.gitlab-ci.bak
80 lines (70 loc) · 1.44 KB
/
.gitlab-ci.bak
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
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: []
artifacts:
paths:
- app/build/reports/
compileTest:
stage: build
script:
- source devenv && ./gradlew packageDebugAndroidTest
needs: []
artifacts:
paths:
- app/build/outputs/
- build/logs/
compilePlay:
stage: build
script:
- source devenv && ./gradlew assemblePlay
needs: []
artifacts:
paths:
- app/build/outputs/
- build/logs/
compileRelease:
stage: build
script:
- source devenv && ./gradlew assembleRelease
needs: []
artifacts:
paths:
- app/build/outputs/
- build/logs/
validate_deployment:
stage: validate_deploy
script:
- source devenv && ci/run-if-not-release ./deploy_playstore.sh --dry-run
needs: []
only:
- master
- tags
deploy_playstore:
stage: deploy
script:
- source devenv && ./deploy_playstore.sh
needs: ["validate_deployment", "compilePlay", "compileRelease", "compileTest", "lint", "test"]
only:
- tags
environment:
name: Play
url: https://play.google.com/store/apps/details?id=com.nononsenseapps.feeder.play