-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
108 lines (98 loc) · 1.6 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
stages:
- Setup
- Dependencies
- Code Styling
- Tests
variables:
LC_ALL: "en_US.UTF-8"
LANG: "en_US.UTF-8"
cache:
key: ${CI_PROJECT_ID}
paths:
- iosApp/Pods/
setup:
stage: Setup
script:
- gem install bundler
- bundle install
tags:
- kmp
ios:dependencies:
dependencies:
- setup
stage: Dependencies
script:
- cd iosApp && bundle exec pod install
tags:
- ios
only:
changes:
- iosApp/**/*
- shared/**/*
ios:lint:
dependencies:
- ios:dependencies
stage: Code Styling
script:
- cd iosApp && bundle exec fastlane ios lint
tags:
- ios
only:
changes:
- iosApp/**/*
- shared/**/*
android:lint:
stage: Code Styling
script:
- ./gradlew clean androidApp:detekt
tags:
- android
only:
changes:
- androidApp/**/*
- shared/**/*
shared:lint:
stage: Code Styling
script:
- ./gradlew clean shared:detekt
tags:
- kmp
only:
changes:
- shared/**/*
ios:unit_tests:
dependencies:
- ios:lint
stage: Tests
script:
- cd iosApp && bundle exec fastlane ios tests
tags:
- ios
only:
changes:
- iosApp/**/*
- shared/**/*
android:unit_tests:
dependencies:
- android:lint
stage: Tests
script:
- cd androidApp && bundle exec fastlane android tests
tags:
- android
only:
changes:
- androidApp/**/*
- shared/**/*
shared:unit_tests:
dependencies:
- shared:lint
stage: Tests
script:
- ./gradlew clean shared:test
- ./gradlew clean shared:iosTest
tags:
- kmp
only:
changes:
- shared/**/*