.gitlab-ci.yml 4.89 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
      - export INSTALL_DOCUMENTATION=OFF
Joseph Mirabel's avatar
Joseph Mirabel committed
10
      - $CI_PROJECT_DIR/scripts/auto-install-hpp.sh --branch ${CI_COMMIT_REF_NAME} --gitrepo ${CI_PROJECT_URL}/raw --target test-ci
11
    after_script:
12
      - mv $DEVEL_HPP_DIR $CI_PROJECT_DIR
Joseph Mirabel's avatar
Joseph Mirabel committed
13
    artifacts:
14
      expire_in: 1 day
15
      when: always
Joseph Mirabel's avatar
Joseph Mirabel committed
16
17
18
19
20
21
      paths:
        - workspace

.test_template: &test_definition
    stage: test
    script:
22
      - rm -rf /workspace
23
      - mv workspace /
24
      - status=0
Guilhem Saurel's avatar
Guilhem Saurel committed
25
      - 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
26
      - cat $DEVEL_HPP_DIR/test.sh
27
      - set +e
28
      - chmod u+x $DEVEL_HPP_DIR/test.sh
Guilhem Saurel's avatar
Guilhem Saurel committed
29
30
31
32
33
34
35
36
37
38
39
40
41
      - $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
42
      - $DEVEL_HPP_DIR/test.sh hpp-rbprm                   || status=1
43
44
      - set -e
      - exit $status
45
    allow_failure: true
46
47
    after_script:
      - mv $DEVEL_HPP_DIR $CI_PROJECT_DIR
48
    artifacts:
49
      expire_in: 1 day
50
      when: always
51
52
53
54
55
56
      paths:
        - workspace

.doc_template: &doc_definition
    stage: deploy
    script:
57
      - rm -rf /workspace
58
      - mv workspace /
59
60
61
      - 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
62
      - export INSTALL_DOCUMENTATION=ON
63
64
        #- make -C $DEVEL_HPP_DIR/src -s all
      - $DEVEL_HPP_DIR/doc.sh
65
      - tar czf ${DEVEL_HPP_DIR}/hpp.${CI_COMMIT_REF_NAME}.`date +"%Y%m%d"`.tar.gz $DEVEL_HPP_DIR/install/share/doc
66
    after_script:
67
      - mv $DEVEL_HPP_DIR $CI_PROJECT_DIR
Joseph Mirabel's avatar
Joseph Mirabel committed
68
69
    allow_failure: true
    artifacts:
70
      expire_in: 1 day
71
      when: always
Joseph Mirabel's avatar
Joseph Mirabel committed
72
73
74
      paths:
        - workspace

75
master-build:
76
    image: eur0c.laas.fr:5000/humanoid-path-planner/hpp-doc/master-premade:16.04
Joseph Mirabel's avatar
Joseph Mirabel committed
77
    only:
78
      - future
Joseph Mirabel's avatar
Joseph Mirabel committed
79
    <<: *build_definition
Joseph Mirabel's avatar
Joseph Mirabel committed
80

81
ubuntu-14.04-build:
82
    image: eur0c.laas.fr:5000/humanoid-path-planner/hpp-doc/ubuntu-14.04-premade:14.04
Joseph Mirabel's avatar
Joseph Mirabel committed
83
    only:
84
      - ubuntu-14.04
Joseph Mirabel's avatar
Joseph Mirabel committed
85
    <<: *build_definition
86

87
devel-build:
88
    image: eur0c.laas.fr:5000/humanoid-path-planner/hpp-doc/devel-premade:16.04
89
90
    only:
      -  devel
Joseph Mirabel's avatar
Joseph Mirabel committed
91
92
    <<: *build_definition

93
94
95
96
97
98
99
devel-18.04-build:
    image: eur0c.laas.fr:5000/humanoid-path-planner/hpp-doc/devel-premade:18.04
    allow_failure: true
    only:
      -  devel
    <<: *build_definition

100
master-test:
101
    image: eur0c.laas.fr:5000/humanoid-path-planner/hpp-doc/master-premade:16.04
102
103
104
    dependencies:
      - master-build
    only:
105
      - future
106
107
108
    <<: *test_definition

ubuntu-14.04-test:
109
    image: eur0c.laas.fr:5000/humanoid-path-planner/hpp-doc/ubuntu-14.04-premade:14.04
110
111
112
113
114
115
116
    dependencies:
      - ubuntu-14.04-build
    only:
      - ubuntu-14.04
    <<: *test_definition

devel-test:
117
    image: eur0c.laas.fr:5000/humanoid-path-planner/hpp-doc/devel-premade:16.04
Joseph Mirabel's avatar
Joseph Mirabel committed
118
    dependencies:
119
      - devel-build
Joseph Mirabel's avatar
Joseph Mirabel committed
120
121
122
    only:
      -  devel
    <<: *test_definition
123

124
125
126
127
128
129
130
131
132
devel-18.04-test:
    image: eur0c.laas.fr:5000/humanoid-path-planner/hpp-doc/devel-premade:18.04
    allow_failure: true
    dependencies:
      - devel-18.04-build
    only:
      -  devel
    <<: *test_definition

133
master-doc:
134
    image: eur0c.laas.fr:5000/humanoid-path-planner/hpp-doc/master-premade:16.04
135
136
137
    dependencies:
      - master-build
    only:
138
      - future
139
140
141
    <<: *doc_definition

ubuntu-14.04-doc:
142
    image: eur0c.laas.fr:5000/humanoid-path-planner/hpp-doc/ubuntu-14.04-premade:14.04
143
144
145
146
147
148
149
    dependencies:
      - ubuntu-14.04-build
    only:
      - ubuntu-14.04
    <<: *doc_definition

devel-doc:
150
    image: eur0c.laas.fr:5000/humanoid-path-planner/hpp-doc/devel-premade:16.04
151
152
153
154
155
    dependencies:
      - devel-build
    only:
      -  devel
    <<: *doc_definition
156
157
158
159
160
161
162
163
164

devel-18.04-doc:
    image: eur0c.laas.fr:5000/humanoid-path-planner/hpp-doc/devel-premade:18.04
    allow_failure: true
    dependencies:
      - devel-18.04-build
    only:
      -  devel
    <<: *doc_definition