blob: df706dae8de7ffb30e88b8b64bec0682a499c1a7 (
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
|
version: 2
defaults: &defaults
docker:
- image: ubuntu:14.04
jobs:
build_linux:
<<: *defaults
steps:
- checkout
- run:
name: Build for Linux
command: |
bash ci/setup_common_requirements.sh
bash ci/build_linux.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: |
# Because the branch filtering does not work for now
if [ "${CIRCLE_BRANCH}" == "doxygen" ];
mkdir /root/.ssh
chmod 0600 /root/.ssh
echo 'github.com ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDSwBK6TbQa+PXYPCPy6rbTrTtw7PHkccKrpp0yVhp5HdEIcKr6pLlVDBfOLX9QUsyCOV0wzfjIJNlGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5QlWpXLmvU31/yMf+Se8xhHTvKSCZIFImWwoG6mbUoWf9nzpIoaSjB+weqqUUmpaaasXVal72J+UX2B+2RPW3RcT0eOzQgqlJL3RKrTJvdsjE3JEAvGq3lGHSZXy28G3skua2SmVi/w4yCE6gbODqnTWlg7+wC604ydGXA8VJiS5ap43JXiUFFAaQ==' >> ~/.ssh/known_hosts
git clone -b gh-pages git@github.com:navit-gps/navit.git /root/navit-doc
cd /root/navit-doc
git config --global push.default simple
git config user.name "Circle CI"
git config user.email "circleci@navit-project.org"
rsync -vrtza --delete /root/project/doc/html /root/navit-doc
echo "" > .nojekyll
git add .
git commit -am "Update doc for commit ${CIRCLE_SHA1}"
git push
fi
- 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
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
build_win32:
<<: *defaults
steps:
- checkout
- run:
name: Build for Windows
command: |
bash ci/setup_common_requirements.sh
bash ci/build_win32.sh
build_wince:
<<: *defaults
steps:
- checkout
- run:
name: Build for Windows CE
command: |
bash ci/setup_common_requirements.sh
bash ci/build_wince.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
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
workflows:
version: 2
doxygen:
jobs:
- run_doxygen
build_all:
jobs:
- build_linux
- build_android_arm
- build_android_x86
- build_win32
- build_tomtom_minimal
- build_tomtom_plugin
|