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

Joseph Mirabel's avatar
Joseph Mirabel committed
7
8
.build_template: &build_definition
    stage: build
Joseph Mirabel's avatar
Joseph Mirabel committed
9
    script:
10
      - export INSTALL_DOCUMENTATION=OFF
11
      - cp -r /clean_workspace $DEVEL_HPP_DIR
12
      - $CI_PROJECT_DIR/script/auto-install-hpp.sh --branch ${CI_COMMIT_REF_NAME} --gitrepo https://gepgitlab.laas.fr/humanoid-path-planner/hpp-doc/raw --target test-ci
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
23
      - status=0
      - 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
24
      - cat $DEVEL_HPP_DIR/test.sh
25
      - set +e
26
      - chmod u+x $DEVEL_HPP_DIR/test.sh
27
28
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
      - set -e
      - exit $status
42
43
    allow_failure: true
    artifacts:
44
      expire_in: 1 day
45
      when: always
46
47
48
49
50
51
      paths:
        - workspace

.doc_template: &doc_definition
    stage: deploy
    script:
52
53
54
      - 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
55
      - export INSTALL_DOCUMENTATION=ON
56
57
        #- make -C $DEVEL_HPP_DIR/src -s all
      - $DEVEL_HPP_DIR/doc.sh
58
      - tar czf ${DEVEL_HPP_DIR}/hpp.${CI_COMMIT_REF_NAME}.`date +"%Y%m%d"`.tar.gz $DEVEL_HPP_DIR/install/share/doc
Joseph Mirabel's avatar
Joseph Mirabel committed
59
60
    allow_failure: true
    artifacts:
61
      expire_in: 1 day
62
      when: always
Joseph Mirabel's avatar
Joseph Mirabel committed
63
64
65
      paths:
        - workspace

66
master-build:
67
    image: eur0c.laas.fr:5000/humanoid-path-planner/hpp-doc/master-premade:16.04
Joseph Mirabel's avatar
Joseph Mirabel committed
68
    only:
69
      - future
Joseph Mirabel's avatar
Joseph Mirabel committed
70
    <<: *build_definition
Joseph Mirabel's avatar
Joseph Mirabel committed
71

72
ubuntu-14.04-build:
73
    image: eur0c.laas.fr:5000/humanoid-path-planner/hpp-doc/ubuntu-14.04-premade:14.04
Joseph Mirabel's avatar
Joseph Mirabel committed
74
    only:
75
      - ubuntu-14.04
Joseph Mirabel's avatar
Joseph Mirabel committed
76
    <<: *build_definition
77

78
devel-build:
79
    image: eur0c.laas.fr:5000/humanoid-path-planner/hpp-doc/devel-premade:16.04
80
81
    only:
      -  devel
Joseph Mirabel's avatar
Joseph Mirabel committed
82
83
    <<: *build_definition

84
master-test:
85
    image: eur0c.laas.fr:5000/humanoid-path-planner/hpp-doc/master-premade:16.04
86
87
88
    dependencies:
      - master-build
    only:
89
      - future
90
91
92
    <<: *test_definition

ubuntu-14.04-test:
93
    image: eur0c.laas.fr:5000/humanoid-path-planner/hpp-doc/ubuntu-14.04-premade:14.04
94
95
96
97
98
99
100
    dependencies:
      - ubuntu-14.04-build
    only:
      - ubuntu-14.04
    <<: *test_definition

devel-test:
101
    image: eur0c.laas.fr:5000/humanoid-path-planner/hpp-doc/devel-premade:16.04
Joseph Mirabel's avatar
Joseph Mirabel committed
102
    dependencies:
103
      - devel-build
Joseph Mirabel's avatar
Joseph Mirabel committed
104
105
106
    only:
      -  devel
    <<: *test_definition
107
108

master-doc:
109
    image: eur0c.laas.fr:5000/humanoid-path-planner/hpp-doc/master-premade:16.04
110
111
112
    dependencies:
      - master-build
    only:
113
      - future
114
115
116
    <<: *doc_definition

ubuntu-14.04-doc:
117
    image: eur0c.laas.fr:5000/humanoid-path-planner/hpp-doc/ubuntu-14.04-premade:14.04
118
119
120
121
122
123
124
    dependencies:
      - ubuntu-14.04-build
    only:
      - ubuntu-14.04
    <<: *doc_definition

devel-doc:
125
    image: eur0c.laas.fr:5000/humanoid-path-planner/hpp-doc/devel-premade:16.04
126
127
128
129
130
    dependencies:
      - devel-build
    only:
      -  devel
    <<: *doc_definition