.gitlab-ci.yml 3.32 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
      - /auto-install-hpp.sh --branch ${CI_COMMIT_REF_NAME}
Joseph Mirabel's avatar
Joseph Mirabel committed
13
14
15
16
17
18
19
    artifacts:
      paths:
        - workspace

.test_template: &test_definition
    stage: test
    script:
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
      - source $DEVEL_HPP_DIR/config.sh
      - cd $DEVEL_HPP_DIR/src/hpp-util/build-rel && make test
      - cd $DEVEL_HPP_DIR/src/hpp-fcl/build-rel && make test
      - cd $DEVEL_HPP_DIR/src/hpp-pinocchio/build-rel && make test
      - cd $DEVEL_HPP_DIR/src/hpp-statistics/build-rel && make test
      - cd $DEVEL_HPP_DIR/src/hpp-constraints/build-rel && make test
      - cd $DEVEL_HPP_DIR/src/hpp-core/build-rel && make test
        #- cd $DEVEL_HPP_DIR/src/hpp-corbaserver/build-rel && make test
      - cd $DEVEL_HPP_DIR/src/hpp-manipulation/build-rel && make test
      - cd $DEVEL_HPP_DIR/src/hpp-manipulation-urdf/build-rel && make test
        #- cd $DEVEL_HPP_DIR/src/hpp-manipulation-corba/build-rel && make test
      - cd $DEVEL_HPP_DIR/src/hpp-walkgen/build-rel && make test
      - cd $DEVEL_HPP_DIR/src/hpp-wholebody-step/build-rel && make test
        #- cd $DEVEL_HPP_DIR/src/hpp-wholebody-step-corba/build-rel && make test
    allow_failure: true
    artifacts:
      paths:
        - workspace

.doc_template: &doc_definition
    stage: deploy
    script:
      - export INSTALL_DOCUMENTATION=ON
      - make -C $DEVEL_HPP_DIR/src -s all
      - tar czf hpp.${CI_COMMIT_REF_NAME}.`date +"%Y%m%d"`.tar.gz $DEVEL_HPP_DIR/install/share/doc
Joseph Mirabel's avatar
Joseph Mirabel committed
45
46
47
48
49
    allow_failure: true
    artifacts:
      paths:
        - workspace

50
master-build:
Joseph Mirabel's avatar
Joseph Mirabel committed
51
    image: eur0c.laas.fr:4567/humanoid-path-planner/hpp-doc/master-premade:16.04
Joseph Mirabel's avatar
Joseph Mirabel committed
52
53
    only:
      - master
Joseph Mirabel's avatar
Joseph Mirabel committed
54
    <<: *build_definition
Joseph Mirabel's avatar
Joseph Mirabel committed
55

56
57
ubuntu-14.04-build:
    image: eur0c.laas.fr:4567/humanoid-path-planner/hpp-doc/ubuntu-14.04-premade:14.04
Joseph Mirabel's avatar
Joseph Mirabel committed
58
    only:
59
      - ubuntu-14.04
Joseph Mirabel's avatar
Joseph Mirabel committed
60
    <<: *build_definition
61

62
devel-build:
63
64
65
    image: eur0c.laas.fr:4567/humanoid-path-planner/hpp-doc/devel-premade:16.04
    only:
      -  devel
Joseph Mirabel's avatar
Joseph Mirabel committed
66
67
    <<: *build_definition

68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
master-test:
    image: eur0c.laas.fr:4567/humanoid-path-planner/hpp-doc/master-premade:16.04
    dependencies:
      - master-build
    only:
      - master
    <<: *test_definition

ubuntu-14.04-test:
    image: eur0c.laas.fr:4567/humanoid-path-planner/hpp-doc/ubuntu-14.04-premade:14.04
    dependencies:
      - ubuntu-14.04-build
    only:
      - ubuntu-14.04
    <<: *test_definition

devel-test:
Joseph Mirabel's avatar
Joseph Mirabel committed
85
86
    image: eur0c.laas.fr:4567/humanoid-path-planner/hpp-doc/devel-premade:16.04
    dependencies:
87
      - devel-build
Joseph Mirabel's avatar
Joseph Mirabel committed
88
89
90
    only:
      -  devel
    <<: *test_definition
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114

master-doc:
    image: eur0c.laas.fr:4567/humanoid-path-planner/hpp-doc/master-premade:16.04
    dependencies:
      - master-build
    only:
      - master
    <<: *doc_definition

ubuntu-14.04-doc:
    image: eur0c.laas.fr:4567/humanoid-path-planner/hpp-doc/ubuntu-14.04-premade:14.04
    dependencies:
      - ubuntu-14.04-build
    only:
      - ubuntu-14.04
    <<: *doc_definition

devel-doc:
    image: eur0c.laas.fr:4567/humanoid-path-planner/hpp-doc/devel-premade:16.04
    dependencies:
      - devel-build
    only:
      -  devel
    <<: *doc_definition