forked from stack-of-tasks/pinocchio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
152 lines (132 loc) · 5.07 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
150
151
152
# http://rainboard.laas.fr/project/pinocchio/.gitlab-ci.yml
variables:
GIT_SUBMODULE_STRATEGY: "recursive"
CCACHE_BASEDIR: "${CI_PROJECT_DIR}"
CCACHE_DIR: "${CI_PROJECT_DIR}/ccache"
CTEST_PARALLEL_LEVEL: 4
CTEST_OUTPUT_ON_FAILURE: 1
cache:
paths:
- ccache
.robotpkg-pinocchio: &robotpkg-pinocchio
except:
- gh-pages
script:
- mkdir -p ccache
- cd /root/robotpkg/math
- git fetch
- git reset --hard origin/master
- cd pinocchio
- make checkout MASTER_REPOSITORY="git ${CI_PROJECT_DIR}/.git"
- make install
- cd $(make show-var VARNAME=WRKSRC)
- make test
#robotpkg-pinocchio-14.04-release:
# <<: *robotpkg-pinocchio
# image: memmos.laas.fr:5000/stack-of-tasks/pinocchio/pinocchio:14.04
#
#robotpkg-pinocchio-14.04-debug:
# <<: *robotpkg-pinocchio
# image: memmos.laas.fr:5000/stack-of-tasks/pinocchio/pinocchio:14.04
# before_script:
# - echo PKG_OPTIONS.pinocchio=debug >> /opt/openrobots/etc/robotpkg.conf
robotpkg-pinocchio-16.04-release:
<<: *robotpkg-pinocchio
image: memmos.laas.fr:5000/stack-of-tasks/pinocchio/pinocchio:16.04
robotpkg-pinocchio-16.04-debug:
<<: *robotpkg-pinocchio
image: memmos.laas.fr:5000/stack-of-tasks/pinocchio/pinocchio:16.04
before_script:
- echo PKG_OPTIONS.pinocchio=debug >> /opt/openrobots/etc/robotpkg.conf
robotpkg-pinocchio-18.04-release:
<<: *robotpkg-pinocchio
image: memmos.laas.fr:5000/stack-of-tasks/pinocchio/pinocchio:18.04
robotpkg-pinocchio-18.04-debug:
<<: *robotpkg-pinocchio
image: memmos.laas.fr:5000/stack-of-tasks/pinocchio/pinocchio:18.04
before_script:
- echo PKG_OPTIONS.pinocchio=debug >> /opt/openrobots/etc/robotpkg.conf
.robotpkg-py-pinocchio: &robotpkg-py-pinocchio
except:
- gh-pages
script:
- mkdir -p ccache
- cd /root/robotpkg/math
- git fetch
- git reset --hard origin/master
- cd pinocchio
- make checkout MASTER_REPOSITORY="git ${CI_PROJECT_DIR}/.git"
- cd ..
- cd py-pinocchio
- make checkout MASTER_REPOSITORY="git ${CI_PROJECT_DIR}/.git"
- make install
- cd $(make show-var VARNAME=WRKSRC)
- make test
#robotpkg-py-pinocchio-14.04-release:
# <<: *robotpkg-py-pinocchio
# image: memmos.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio:14.04
#
#robotpkg-py-pinocchio-py3-14.04-release:
# <<: *robotpkg-py-pinocchio
# image: memmos.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio-py3:14.04
#robotpkg-py-pinocchio-14.04-debug:
# <<: *robotpkg-py-pinocchio
# image: memmos.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio:14.04
# before_script:
# - echo PKG_OPTIONS.py-pinocchio=debug >> /opt/openrobots/etc/robotpkg.conf
#
#robotpkg-py-pinocchio-py3-14.04-debug:
# <<: *robotpkg-py-pinocchio
# image: memmos.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio-py3:14.04
# before_script:
# - echo PKG_OPTIONS.py-pinocchio=debug >> /opt/openrobots/etc/robotpkg.conf
robotpkg-py-pinocchio-16.04-release:
<<: *robotpkg-py-pinocchio
image: memmos.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio:16.04
robotpkg-py-pinocchio-py3-16.04-release:
<<: *robotpkg-py-pinocchio
image: memmos.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio-py3:16.04
robotpkg-py-pinocchio-16.04-debug:
<<: *robotpkg-py-pinocchio
image: memmos.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio:16.04
before_script:
- echo PKG_OPTIONS.py-pinocchio=debug >> /opt/openrobots/etc/robotpkg.conf
robotpkg-py-pinocchio-py3-16.04-debug:
<<: *robotpkg-py-pinocchio
image: memmos.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio-py3:16.04
before_script:
- echo PKG_OPTIONS.py-pinocchio=debug >> /opt/openrobots/etc/robotpkg.conf
robotpkg-py-pinocchio-py3-18.04-release:
<<: *robotpkg-py-pinocchio
image: memmos.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio-py3:18.04
robotpkg-py-pinocchio-18.04-release:
<<: *robotpkg-py-pinocchio
image: memmos.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio:18.04
robotpkg-py-pinocchio-18.04-debug:
<<: *robotpkg-py-pinocchio
image: memmos.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio:18.04
before_script:
- echo PKG_OPTIONS.py-pinocchio=debug >> /opt/openrobots/etc/robotpkg.conf
robotpkg-py-pinocchio-py3-18.04-debug:
<<: *robotpkg-py-pinocchio
image: memmos.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio-py3:18.04
before_script:
- echo PKG_OPTIONS.py-pinocchio=debug >> /opt/openrobots/etc/robotpkg.conf
doc-coverage:
<<: *robotpkg-py-pinocchio
image: memmos.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio:18.04
before_script:
- echo -e 'CXXFLAGS+= --coverage\nLDFLAGS+= --coverage\nPKG_DEFAULT_OPTIONS= debug' >> /opt/openrobots/etc/robotpkg.conf
after_script:
- cd /root/robotpkg/math/py-pinocchio
- cd $(make show-var VARNAME=WRKSRC)
- make doc
- mv doc/doxygen-html ${CI_PROJECT_DIR}
- mkdir -p ${CI_PROJECT_DIR}/coverage/
- gcovr -r . --exclude .*bindings/python --exclude CMakeFiles/
- gcovr -r . --exclude .*bindings/python --exclude CMakeFiles/ --html --html-details -o ${CI_PROJECT_DIR}/coverage/index.html
artifacts:
expire_in: 1 day
paths:
- doxygen-html/
- coverage/