forked from fivenine-zurich/UnifiedMaps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
149 lines (142 loc) · 2.08 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
stages:
- build
- test
- nuget
- publish
build debug:
stage: build
script:
- ./build.sh --target Build-CI --configuration Debug
cache:
paths:
- packages
- tools
except:
- master
- tags
- /^release/.*$/
tags:
- osx
- xamarin
- xcode
test debug:
stage: test
script:
- ./build.sh --target Run-Unit-Tests --configuration Debug
cache:
paths:
- packages
- tools
except:
- master
- tags
- /^release/.*$/
dependencies:
- build debug
tags:
- osx
- xamarin
- xcode
build release:
stage: build
script:
- ./build.sh --target Build-CI --configuration Release
cache:
paths:
- packages
- tools
only:
- master
- tags
- /^release/.*$/
artifacts:
paths:
- bin/
expire_in: 30 minutes
tags:
- osx
- xamarin
- xcode
test release:
stage: test
script:
- ./build.sh --target Run-Unit-Tests --configuration Debug
cache:
paths:
- packages
- tools
only:
- master
- tags
- /^release/.*$/
dependencies:
- build release
tags:
- osx
- xamarin
- xcode
nuget pack:
stage: nuget
script:
- ./build.sh --target NuGet-Pack
cache:
paths:
- packages
- tools
artifacts:
paths:
- UnifiedMaps.*.nupkg
expire_in: 30 minutes
only:
- master
- tags
- /^release/.*$/
dependencies:
- build release
tags:
- osx
- xamarin
- xcode
nuget publish pre:
environment: prerelease
stage: publish
script:
- ./build.sh --target NuGet-Publish
cache:
paths:
- packages
- tools
artifacts:
paths:
- UnifiedMaps.*.nupkg
only:
- master
- /^release/.*$/
dependencies:
- nuget pack
when: manual
tags:
- osx
- xamarin
- xcode
nuget publish:
environment: production
stage: publish
script:
- ./build.sh --target NuGet-Publish
cache:
paths:
- packages
- tools
artifacts:
paths:
- UnifiedMaps.*.nupkg
only:
- tags
dependencies:
- nuget pack
when: manual
tags:
- osx
- xamarin
- xcode