.gitlab-ci.yml 4.87 KB
Newer Older
1
2
variables:
    GIT_SUBMODULE_STRATEGY: "recursive"
3
    DEVEL_HPP_DIR: "/workspace"
Joseph Mirabel's avatar
Joseph Mirabel committed
4
    BUILD_TYPE: "Release"
5

Joseph Mirabel's avatar
Joseph Mirabel committed
6
7
.build_template: &build_definition
    stage: build
Joseph Mirabel's avatar
Joseph Mirabel committed
8
    script:
9
      - mkdir -p $DEVEL_HPP_DIR/src
10
      - export INSTALL_DOCUMENTATION=OFF
Joseph Mirabel's avatar
Joseph Mirabel committed
11
      - $CI_PROJECT_DIR/scripts/auto-install-hpp.sh --branch ${CI_COMMIT_REF_NAME} --gitrepo ${CI_PROJECT_URL}/raw --target test-ci
12
    after_script:
13
      - mv $DEVEL_HPP_DIR $CI_PROJECT_DIR
Joseph Mirabel's avatar
Joseph Mirabel committed
14
    artifacts:
15
      expire_in: 1 day
16
      when: always
Joseph Mirabel's avatar
Joseph Mirabel committed
17
18
19
20
21
22
      paths:
        - workspace

.test_template: &test_definition
    stage: test
    script:
23
      - rm -rf /workspace
24
      - mv workspace /
25
      - status=0
Guilhem Saurel's avatar
Guilhem Saurel committed
26
      - echo -e "#!/bin/bash\nsource $DEVEL_HPP_DIR/config.sh\ncd $DEVEL_HPP_DIR/src/\$1/build-rel && make CTEST_OUTPUT_ON_FAILURE=1 test" > $DEVEL_HPP_DIR/test.sh || status=1
27
      - cat $DEVEL_HPP_DIR/test.sh
28
      - set +e
29
      - chmod u+x $DEVEL_HPP_DIR/test.sh
Guilhem Saurel's avatar
Guilhem Saurel committed
30
31
32
33
34
35
36
37
38
39
40
41
42
      - $DEVEL_HPP_DIR/test.sh hpp-util                    || status=1
      - $DEVEL_HPP_DIR/test.sh hpp-fcl                     || status=1
      - $DEVEL_HPP_DIR/test.sh hpp-pinocchio               || status=1
      - $DEVEL_HPP_DIR/test.sh hpp-statistics              || status=1
      - $DEVEL_HPP_DIR/test.sh hpp-constraints             || status=1
      - $DEVEL_HPP_DIR/test.sh hpp-core                    || status=1
        #- $DEVEL_HPP_DIR/test.sh hpp-corbaserver          || status=1
      - $DEVEL_HPP_DIR/test.sh hpp-manipulation            || status=1
      - $DEVEL_HPP_DIR/test.sh hpp-manipulation-urdf       || status=1
        #- $DEVEL_HPP_DIR/test.sh hpp-manipulation-corba   || status=1
      - $DEVEL_HPP_DIR/test.sh hpp-walkgen                 || status=1
      - $DEVEL_HPP_DIR/test.sh hpp-wholebody-step          || status=1
        #- $DEVEL_HPP_DIR/test.sh hpp-wholebody-step-corba || status=1
43
      - $DEVEL_HPP_DIR/test.sh hpp-rbprm                   || status=1
44
45
      - set -e
      - exit $status
46
    allow_failure: true
47
48
    after_script:
      - mv $DEVEL_HPP_DIR $CI_PROJECT_DIR
49
    artifacts:
50
      expire_in: 1 day
51
      when: always
52
53
54
55
56
57
      paths:
        - workspace

.doc_template: &doc_definition
    stage: deploy
    script:
58
      - rm -rf /workspace
59
      - mv workspace /
60
61
62
      - echo -e "#!/bin/bash\nsource $DEVEL_HPP_DIR/config.sh\nmake -C $DEVEL_HPP_DIR/src -s all" > $DEVEL_HPP_DIR/doc.sh
      - cat $DEVEL_HPP_DIR/doc.sh
      - chmod u+x $DEVEL_HPP_DIR/doc.sh
63
      - export INSTALL_DOCUMENTATION=ON
64
65
        #- make -C $DEVEL_HPP_DIR/src -s all
      - $DEVEL_HPP_DIR/doc.sh
66
      - tar czf ${DEVEL_HPP_DIR}/hpp.${CI_COMMIT_REF_NAME}.`date +"%Y%m%d"`.tar.gz $DEVEL_HPP_DIR/install/share/doc
67
    after_script:
68
      - mv $DEVEL_HPP_DIR $CI_PROJECT_DIR
Joseph Mirabel's avatar
Joseph Mirabel committed
69
70
    allow_failure: true
    artifacts:
71
      expire_in: 1 day
72
      when: always
Joseph Mirabel's avatar
Joseph Mirabel committed
73
74
75
      paths:
        - workspace

Guilhem Saurel's avatar
Guilhem Saurel committed
76
stable-18.04-build:
Guilhem Saurel's avatar
Guilhem Saurel committed
77
    image: gitlab.laas.fr:4567/humanoid-path-planner/hpp-doc:18.04
Joseph Mirabel's avatar
Joseph Mirabel committed
78
    only:
Guilhem Saurel's avatar
Guilhem Saurel committed
79
      - stable
Joseph Mirabel's avatar
Joseph Mirabel committed
80
    <<: *build_definition
Joseph Mirabel's avatar
Joseph Mirabel committed
81

Guilhem Saurel's avatar
Guilhem Saurel committed
82
83
stable-20.04-build:
    image: gitlab.laas.fr:4567/humanoid-path-planner/hpp-doc:20.04
Guilhem Saurel's avatar
Guilhem Saurel committed
84
85
    allow_failure: true
    only:
Guilhem Saurel's avatar
Guilhem Saurel committed
86
      - stable
Guilhem Saurel's avatar
Guilhem Saurel committed
87
88
    <<: *build_definition

Guilhem Saurel's avatar
Guilhem Saurel committed
89
devel-18.04-build:
Guilhem Saurel's avatar
Guilhem Saurel committed
90
    image: gitlab.laas.fr:4567/humanoid-path-planner/hpp-doc:18.04
91
92
    only:
      -  devel
Joseph Mirabel's avatar
Joseph Mirabel committed
93
94
    <<: *build_definition

Guilhem Saurel's avatar
Guilhem Saurel committed
95
96
devel-20.04-build:
    image: gitlab.laas.fr:4567/humanoid-path-planner/hpp-doc:20.04
97
98
99
100
101
    allow_failure: true
    only:
      -  devel
    <<: *build_definition

Guilhem Saurel's avatar
Guilhem Saurel committed
102
stable-18.04-test:
Guilhem Saurel's avatar
Guilhem Saurel committed
103
    image: gitlab.laas.fr:4567/humanoid-path-planner/hpp-doc:18.04
104
    dependencies:
Guilhem Saurel's avatar
Guilhem Saurel committed
105
      - stable-18.04-build
Guilhem Saurel's avatar
Guilhem Saurel committed
106
    only:
Guilhem Saurel's avatar
Guilhem Saurel committed
107
      - stable
Guilhem Saurel's avatar
Guilhem Saurel committed
108
109
    <<: *test_definition

Guilhem Saurel's avatar
Guilhem Saurel committed
110
stable-20.04-test:
Guilhem Saurel's avatar
Guilhem Saurel committed
111
    allow_failure: true
Guilhem Saurel's avatar
Guilhem Saurel committed
112
    image: gitlab.laas.fr:4567/humanoid-path-planner/hpp-doc:20.04
Guilhem Saurel's avatar
Guilhem Saurel committed
113
    dependencies:
Guilhem Saurel's avatar
Guilhem Saurel committed
114
      - stable-20.04-build
115
    only:
Guilhem Saurel's avatar
Guilhem Saurel committed
116
      - stable
117
118
    <<: *test_definition

Guilhem Saurel's avatar
Guilhem Saurel committed
119

Guilhem Saurel's avatar
Guilhem Saurel committed
120
devel-18.04-test:
Guilhem Saurel's avatar
Guilhem Saurel committed
121
    image: gitlab.laas.fr:4567/humanoid-path-planner/hpp-doc:18.04
Joseph Mirabel's avatar
Joseph Mirabel committed
122
    dependencies:
Guilhem Saurel's avatar
Guilhem Saurel committed
123
      - devel-18.04-build
Joseph Mirabel's avatar
Joseph Mirabel committed
124
125
126
    only:
      -  devel
    <<: *test_definition
127

Guilhem Saurel's avatar
Guilhem Saurel committed
128
129
devel-20.04-test:
    image: gitlab.laas.fr:4567/humanoid-path-planner/hpp-doc:20.04
130
131
    allow_failure: true
    dependencies:
Guilhem Saurel's avatar
Guilhem Saurel committed
132
      - devel-20.04-build
133
134
135
136
    only:
      -  devel
    <<: *test_definition

Guilhem Saurel's avatar
Guilhem Saurel committed
137
stable-18.04-doc:
Guilhem Saurel's avatar
Guilhem Saurel committed
138
    image: gitlab.laas.fr:4567/humanoid-path-planner/hpp-doc:18.04
139
    dependencies:
Guilhem Saurel's avatar
Guilhem Saurel committed
140
      - stable-18.04-build
Guilhem Saurel's avatar
Guilhem Saurel committed
141
    only:
Guilhem Saurel's avatar
Guilhem Saurel committed
142
      - stable
Guilhem Saurel's avatar
Guilhem Saurel committed
143
144
    <<: *doc_definition

Guilhem Saurel's avatar
Guilhem Saurel committed
145
146
stable-20.04-doc:
    image: gitlab.laas.fr:4567/humanoid-path-planner/hpp-doc:20.04
Guilhem Saurel's avatar
Guilhem Saurel committed
147
148
    allow_failure: true
    dependencies:
Guilhem Saurel's avatar
Guilhem Saurel committed
149
      - stable-20.04-build
150
    only:
Guilhem Saurel's avatar
Guilhem Saurel committed
151
      - stable
152
153
    <<: *doc_definition

Guilhem Saurel's avatar
Guilhem Saurel committed
154
devel-18.04-doc:
Guilhem Saurel's avatar
Guilhem Saurel committed
155
    image: gitlab.laas.fr:4567/humanoid-path-planner/hpp-doc:18.04
156
    dependencies:
Guilhem Saurel's avatar
Guilhem Saurel committed
157
      - devel-18.04-build
158
159
160
    only:
      -  devel
    <<: *doc_definition
161

Guilhem Saurel's avatar
Guilhem Saurel committed
162
163
devel-20.04-doc:
    image: gitlab.laas.fr:4567/humanoid-path-planner/hpp-doc:20.04
164
165
    allow_failure: true
    dependencies:
Guilhem Saurel's avatar
Guilhem Saurel committed
166
      - devel-20.04-build
167
168
169
    only:
      -  devel
    <<: *doc_definition