blob: a7373bbf7f618b458828e76484dcc01fe1c9ad5e (
plain)
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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
|
version: 2
defaults: &defaults
docker:
- image: ubuntu:14.04
jobs:
build_linux:
<<: *defaults
steps:
- checkout
- run:
name: Setup requirements
command: |
bash ci/setup_common_requirements.sh
apt-get install -y libpng12-dev librsvg2-bin libfreetype6-dev libdbus-glib-1-dev libgtk2.0-dev curl
- run:
name: Build for Linux
command: bash ci/build_linux.sh
- store_artifacts:
path: linux/_CPack_Packages
- run:
name: Update Navit-Download-Center
command: |
bash ci/update_download_center.sh
run_doxygen:
<<: *defaults
steps:
- checkout
- run:
name: Install doxygen
command: apt-get update && apt-get -y install doxygen ca-certificates git
- run:
name: Run doxygen
command: cd navit && doxygen
- run:
name: Update results to Github
command: bash ci/update_doxygen.sh
- store_artifacts:
path: /root/project/doc
build_android_arm:
<<: *defaults
steps:
- checkout
- run:
name: Setup common requirements
command: |
bash ci/setup_common_requirements.sh
- run:
name: Prepare the Android build environment
command: |
bash ci/setup_android.sh
- run:
name: Build for Android ARM
command: |
bash ci/build_android.sh
- store_artifacts:
path: android-arm/navit/android/bin
- run:
name: Update Navit-Download-Center
command: |
bash ci/update_download_center.sh
build_android_x86:
<<: *defaults
steps:
- checkout
- run:
name: Setup common requirements
command: |
bash ci/setup_common_requirements.sh
- run:
name: Prepare the Android build environment
command: |
bash ci/setup_android.sh
- run:
name: Build for Android X86
command: |
bash ci/build_android_x86.sh
- store_artifacts:
path: android-x86/navit/android/bin
- run:
name: Update Navit-Download-Center
command: |
bash ci/update_download_center.sh
build_win32:
<<: *defaults
steps:
- checkout
- run:
name: Build for Windows
command: |
bash ci/setup_common_requirements.sh
bash ci/build_win32.sh
- store_artifacts:
path: win32/navit.exe
- run:
name: Update Navit-Download-Center
command: |
bash ci/update_download_center.sh
build_wince:
docker:
- image: navit/dockerfiles:wince
steps:
- checkout
- run:
name: Prepare the WinCE build environment
command: |
bash ci/setup_wince.sh
- run:
name: Build for Windows CE
command: bash ci/build_wince.sh
- store_artifacts:
path: wince/output
- run:
name: Update Navit-Download-Center
command: |
bash ci/update_download_center.sh
build_tomtom_minimal:
<<: *defaults
docker:
- image: navit/tomtom-build-image
steps:
- checkout
- run:
name: Setup common requirements
command: |
bash ci/setup_common_requirements.sh
- run:
name: Build for Tomtom (minimal)
command: |
bash ci/build_tomtom_minimal.sh
- store_artifacts:
path: /output
- run:
name: Update Navit-Download-Center
command: |
bash ci/update_download_center.sh
build_tomtom_plugin:
<<: *defaults
docker:
- image: navit/tomtom-build-image
steps:
- checkout
- run:
name: Setup common requirements
command: |
bash ci/setup_common_requirements.sh
- run:
name: Build for Tomtom (plugin)
command: |
bash ci/build_tomtom_plugin.sh
- store_artifacts:
path: /output
- run:
name: Update Navit-Download-Center
command: |
bash ci/update_download_center.sh
merge_trunk_in_master:
<<: *defaults
steps:
- checkout
- run:
name: Install git
command: apt-get update && apt-get -y install ca-certificates git
- run:
name: configure ssh git
command: mkdir -p ~/.ssh/ && ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
- add_ssh_keys:
fingerprints:
- "16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48"
- run:
name: Update results to Github
command: export GIT_TERMINAL_PROMPT=0 && git push origin $CIRCLE_SHA1:refs/heads/master
workflows:
version: 2
build_all:
jobs:
- build_linux
- build_android_arm
- build_android_x86
- build_win32
- build_wince
- build_tomtom_minimal
- build_tomtom_plugin
- run_doxygen:
requires:
- build_linux
- build_android_arm
- build_android_x86
- build_win32
- build_wince
- build_tomtom_minimal
- build_tomtom_plugin
filters:
branches:
only: /^trunk$/
- merge_trunk_in_master:
requires:
- build_linux
- build_android_arm
- build_android_x86
- build_win32
- build_wince
- build_tomtom_minimal
- build_tomtom_plugin
filters:
branches:
only: /^trunk$/
|