.gitlab-ci.yml 4.23 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
Guilhem Saurel's avatar
Guilhem Saurel committed
10
      - $CI_PROJECT_DIR/script/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
43
      - set -e
      - exit $status
44
    allow_failure: true
45
46
    after_script:
      - mv $DEVEL_HPP_DIR $CI_PROJECT_DIR
47
    artifacts:
48
      expire_in: 1 day
49
      when: always
50
51
52
53
54
55
      paths:
        - workspace

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

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

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

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

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

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

devel-test:
109
    image: eur0c.laas.fr:5000/humanoid-path-planner/hpp-doc/devel-premade:16.04
Joseph Mirabel's avatar
Joseph Mirabel committed
110
    dependencies:
111
      - devel-build
Joseph Mirabel's avatar
Joseph Mirabel committed
112
113
114
    only:
      -  devel
    <<: *test_definition
115
116

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

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

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