-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
78 lines (69 loc) · 1.4 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
stages:
- mirror
- test
- stats
- release
default:
image: namboy94/ci-docker-environment:0.9.0
before_script:
- echo "$SERVER_ACCESS_KEY" > ~/.ssh/id_rsa
- chmod 0600 ~/.ssh/id_rsa
- ./gradlew
github_mirror:
stage: mirror
tags: [docker]
only: [master, develop]
before_script:
- echo "$GITHUB_SSH_KEY" > ~/.ssh/id_rsa
- chmod 0600 ~/.ssh/id_rsa
script:
- git-mirror-pusher git@github.com:namboy94/bundesliga-tippspiel-android.git
master develop
lint:
stage: test
tags: [docker]
script:
- gradle-ktlint
unittest:
stage: test
tags: [docker]
only: [master, develop]
script:
- gradle-jacoco app
build_app:
stage: test
only: [master, develop]
tags: [docker]
script:
- gradle-build-android app
after_script:
- ls app/build/
- ls app/build/outputs/apk
- ls app/build/outputs/apk/release
artifacts:
expire_in: 1 week
paths:
- artifacts/
gitstats:
stage: stats
tags: [docker]
script:
- gitstats-gen
docgen:
stage: stats
tags: [docker]
script:
- gradle-dokka app
release_upload:
stage: release
only: [master]
tags: [docker]
script:
- github-release-upload $(cat version) "$(changelog-reader)"
- gitlab-release-upload $(cat version) "$(changelog-reader)"
upload_play_store:
stage: release
only: [master]
tags: [docker]
script:
- play-upload net.namibsun.hktipp production