.gitlab-ci.yml 5 KB
Newer Older
1 2
# http://rainboard.laas.fr/project/pinocchio/.gitlab-ci.yml

3
variables:
4
  GIT_SUBMODULE_STRATEGY: "recursive"
jcarpent's avatar
jcarpent committed
5 6
  CCACHE_BASEDIR: "${CI_PROJECT_DIR}"
  CCACHE_DIR: "${CI_PROJECT_DIR}/ccache"
Guilhem Saurel's avatar
Guilhem Saurel committed
7
  CTEST_PARALLEL_LEVEL: 4
Guilhem Saurel's avatar
Guilhem Saurel committed
8 9 10

cache:
  paths:
jcarpent's avatar
jcarpent committed
11
    - ccache
Guilhem Saurel's avatar
Guilhem Saurel committed
12

13
.robotpkg-pinocchio: &robotpkg-pinocchio
jcarpent's avatar
jcarpent committed
14 15
  except:
    - gh-pages
16
  script:
17
    - mkdir -p ccache
18
    - cd /root/robotpkg/math
19
    - git pull
20
    - cd pinocchio
Guilhem Saurel's avatar
Guilhem Saurel committed
21
    - make checkout MASTER_REPOSITORY="git ${CI_PROJECT_DIR}/.git"
22
    - make install
Guilhem Saurel's avatar
Guilhem Saurel committed
23
    - cd $(make show-var VARNAME=WRKSRC)
24
    - make test
25

26
robotpkg-pinocchio-14.04-release:
27
  <<: *robotpkg-pinocchio
28
  image: eur0c.laas.fr:5000/stack-of-tasks/pinocchio/pinocchio:14.04
jcarpent's avatar
jcarpent committed
29

Guilhem Saurel's avatar
Guilhem Saurel committed
30 31 32 33 34 35
robotpkg-pinocchio-14.04-debug:
  <<: *robotpkg-pinocchio
  image: eur0c.laas.fr:5000/stack-of-tasks/pinocchio/pinocchio:14.04
  before_script:
    - echo PKG_OPTIONS.pinocchio=debug >> /opt/openrobots/etc/robotpkg.conf

36
robotpkg-pinocchio-16.04-release:
37
  <<: *robotpkg-pinocchio
38
  image: eur0c.laas.fr:5000/stack-of-tasks/pinocchio/pinocchio:16.04
jcarpent's avatar
jcarpent committed
39

Guilhem Saurel's avatar
Guilhem Saurel committed
40 41 42 43 44 45
robotpkg-pinocchio-16.04-debug:
  <<: *robotpkg-pinocchio
  image: eur0c.laas.fr:5000/stack-of-tasks/pinocchio/pinocchio:16.04
  before_script:
    - echo PKG_OPTIONS.pinocchio=debug >> /opt/openrobots/etc/robotpkg.conf

46
robotpkg-pinocchio-18.04-release:
47
  <<: *robotpkg-pinocchio
48
  image: eur0c.laas.fr:5000/stack-of-tasks/pinocchio/pinocchio:18.04
Guilhem Saurel's avatar
Guilhem Saurel committed
49

Guilhem Saurel's avatar
Guilhem Saurel committed
50 51 52 53 54 55
robotpkg-pinocchio-18.04-debug:
  <<: *robotpkg-pinocchio
  image: eur0c.laas.fr:5000/stack-of-tasks/pinocchio/pinocchio:18.04
  before_script:
    - echo PKG_OPTIONS.pinocchio=debug >> /opt/openrobots/etc/robotpkg.conf

56 57 58 59
.robotpkg-py-pinocchio: &robotpkg-py-pinocchio
  except:
    - gh-pages
  script:
60
    - mkdir -p ccache
61
    - cd /root/robotpkg/math
62
    - git pull
63
    - cd pinocchio
Guilhem Saurel's avatar
Guilhem Saurel committed
64
    - make checkout MASTER_REPOSITORY="git ${CI_PROJECT_DIR}/.git"
65 66
    - cd ..
    - cd py-pinocchio
Guilhem Saurel's avatar
Guilhem Saurel committed
67
    - make checkout MASTER_REPOSITORY="git ${CI_PROJECT_DIR}/.git"
68
    - make install
Guilhem Saurel's avatar
Guilhem Saurel committed
69
    - cd $(make show-var VARNAME=WRKSRC)
70
    - make test
71

72
robotpkg-py-pinocchio-14.04-release:
73
  <<: *robotpkg-py-pinocchio
74
  image: eur0c.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio:14.04
75

76
robotpkg-py-pinocchio-py3-14.04-release:
77 78
  <<: *robotpkg-py-pinocchio
  image: eur0c.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio-py3:14.04
79
  allow_failure: true
80

Guilhem Saurel's avatar
Guilhem Saurel committed
81 82 83 84 85 86 87 88 89 90 91 92 93
robotpkg-py-pinocchio-14.04-debug:
  <<: *robotpkg-py-pinocchio
  image: eur0c.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio:14.04
  before_script:
    - echo PKG_OPTIONS.py-pinocchio=debug >> /opt/openrobots/etc/robotpkg.conf

robotpkg-py-pinocchio-py3-14.04-debug:
  <<: *robotpkg-py-pinocchio
  image: eur0c.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio-py3:14.04
  allow_failure: true
  before_script:
    - echo PKG_OPTIONS.py-pinocchio=debug >> /opt/openrobots/etc/robotpkg.conf

94
robotpkg-py-pinocchio-16.04-release:
95
  <<: *robotpkg-py-pinocchio
96
  image: eur0c.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio:16.04
97

98
robotpkg-py-pinocchio-py3-16.04-release:
99 100
  <<: *robotpkg-py-pinocchio
  image: eur0c.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio-py3:16.04
101
  allow_failure: true
102

Guilhem Saurel's avatar
Guilhem Saurel committed
103 104 105 106 107 108 109 110 111 112 113 114 115 116 117
robotpkg-py-pinocchio-16.04-debug:
  <<: *robotpkg-py-pinocchio
  image: eur0c.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio:16.04
  before_script:
    - echo PKG_OPTIONS.py-pinocchio=debug >> /opt/openrobots/etc/robotpkg.conf

robotpkg-py-pinocchio-py3-16.04-debug:
  <<: *robotpkg-py-pinocchio
  image: eur0c.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio-py3:16.04
  allow_failure: true
  before_script:
    - echo PKG_OPTIONS.py-pinocchio=debug >> /opt/openrobots/etc/robotpkg.conf

robotpkg-py-pinocchio-py3-18.04-release:
  <<: *robotpkg-py-pinocchio
118
  allow_failure: true
Guilhem Saurel's avatar
Guilhem Saurel committed
119 120
  image: eur0c.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio-py3:18.04

121 122 123 124
robotpkg-py-pinocchio-18.04-release:
  <<: *robotpkg-py-pinocchio
  image: eur0c.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio:18.04

Guilhem Saurel's avatar
Guilhem Saurel committed
125 126 127 128 129 130 131
robotpkg-py-pinocchio-18.04-debug:
  <<: *robotpkg-py-pinocchio
  image: eur0c.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio:18.04
  before_script:
    - echo PKG_OPTIONS.py-pinocchio=debug >> /opt/openrobots/etc/robotpkg.conf

robotpkg-py-pinocchio-py3-18.04-debug:
132 133
  <<: *robotpkg-py-pinocchio
  image: eur0c.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio-py3:18.04
134
  allow_failure: true
Guilhem Saurel's avatar
Guilhem Saurel committed
135 136
  before_script:
    - echo PKG_OPTIONS.py-pinocchio=debug >> /opt/openrobots/etc/robotpkg.conf
137

138
doc-coverage:
139
  <<: *robotpkg-py-pinocchio
140 141 142 143 144
  image: eur0c.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio:16.04
  before_script:
    - echo -e 'CXXFLAGS+= --coverage\nLDFLAGS+= --coverage\nPKG_DEFAULT_OPTIONS= debug' >> /opt/openrobots/etc/robotpkg.conf
  after_script:
    - cd /root/robotpkg/math/py-pinocchio
Guilhem Saurel's avatar
Guilhem Saurel committed
145
    - cd $(make show-var VARNAME=WRKSRC)
146 147 148
    - make doc
    - mv doc/doxygen-html ${CI_PROJECT_DIR}
    - mkdir -p ${CI_PROJECT_DIR}/coverage/
149 150
    - gcovr -r . --exclude .*bindings/python
    - gcovr -r . --exclude .*bindings/python --html --html-details -o ${CI_PROJECT_DIR}/coverage/index.html
151 152 153 154 155
  artifacts:
    expire_in: 1 day
    paths:
      - doxygen-html/
      - coverage/