.gitlab-ci.yml 5.07 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
8
  CTEST_OUTPUT_ON_FAILURE: 1
Guilhem Saurel's avatar
Guilhem Saurel committed
9 10 11

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

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

28 29
#robotpkg-pinocchio-14.04-release:
#  <<: *robotpkg-pinocchio
Justin Carpentier's avatar
Justin Carpentier committed
30
#  image: memmos.laas.fr:5000/stack-of-tasks/pinocchio/pinocchio:14.04
31 32 33
#
#robotpkg-pinocchio-14.04-debug:
#  <<: *robotpkg-pinocchio
Justin Carpentier's avatar
Justin Carpentier committed
34
#  image: memmos.laas.fr:5000/stack-of-tasks/pinocchio/pinocchio:14.04
35 36
#  before_script:
#    - echo PKG_OPTIONS.pinocchio=debug >> /opt/openrobots/etc/robotpkg.conf
Guilhem Saurel's avatar
Guilhem Saurel committed
37

38
robotpkg-pinocchio-16.04-release:
39
  <<: *robotpkg-pinocchio
Justin Carpentier's avatar
Justin Carpentier committed
40
  image: memmos.laas.fr:5000/stack-of-tasks/pinocchio/pinocchio:16.04
jcarpent's avatar
jcarpent committed
41

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

48
robotpkg-pinocchio-18.04-release:
49
  <<: *robotpkg-pinocchio
Justin Carpentier's avatar
Justin Carpentier committed
50
  image: memmos.laas.fr:5000/stack-of-tasks/pinocchio/pinocchio:18.04
Guilhem Saurel's avatar
Guilhem Saurel committed
51

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

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

75 76
#robotpkg-py-pinocchio-14.04-release:
#  <<: *robotpkg-py-pinocchio
Justin Carpentier's avatar
Justin Carpentier committed
77
#  image: memmos.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio:14.04
78 79 80
#
#robotpkg-py-pinocchio-py3-14.04-release:
#  <<: *robotpkg-py-pinocchio
Justin Carpentier's avatar
Justin Carpentier committed
81
#  image: memmos.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio-py3:14.04
82 83 84

#robotpkg-py-pinocchio-14.04-debug:
#  <<: *robotpkg-py-pinocchio
Justin Carpentier's avatar
Justin Carpentier committed
85
#  image: memmos.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio:14.04
86 87 88 89 90
#  before_script:
#    - echo PKG_OPTIONS.py-pinocchio=debug >> /opt/openrobots/etc/robotpkg.conf
#
#robotpkg-py-pinocchio-py3-14.04-debug:
#  <<: *robotpkg-py-pinocchio
Justin Carpentier's avatar
Justin Carpentier committed
91
#  image: memmos.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio-py3:14.04
92 93
#  before_script:
#    - echo PKG_OPTIONS.py-pinocchio=debug >> /opt/openrobots/etc/robotpkg.conf
Guilhem Saurel's avatar
Guilhem Saurel committed
94

95
robotpkg-py-pinocchio-16.04-release:
96
  <<: *robotpkg-py-pinocchio
Justin Carpentier's avatar
Justin Carpentier committed
97
  image: memmos.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio:16.04
98

99
robotpkg-py-pinocchio-py3-16.04-release:
100
  <<: *robotpkg-py-pinocchio
Justin Carpentier's avatar
Justin Carpentier committed
101
  image: memmos.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio-py3:16.04
102

Guilhem Saurel's avatar
Guilhem Saurel committed
103 104
robotpkg-py-pinocchio-16.04-debug:
  <<: *robotpkg-py-pinocchio
Justin Carpentier's avatar
Justin Carpentier committed
105
  image: memmos.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio:16.04
Guilhem Saurel's avatar
Guilhem Saurel committed
106 107 108 109 110
  before_script:
    - echo PKG_OPTIONS.py-pinocchio=debug >> /opt/openrobots/etc/robotpkg.conf

robotpkg-py-pinocchio-py3-16.04-debug:
  <<: *robotpkg-py-pinocchio
Justin Carpentier's avatar
Justin Carpentier committed
111
  image: memmos.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio-py3:16.04
Guilhem Saurel's avatar
Guilhem Saurel committed
112 113 114 115 116
  before_script:
    - echo PKG_OPTIONS.py-pinocchio=debug >> /opt/openrobots/etc/robotpkg.conf

robotpkg-py-pinocchio-py3-18.04-release:
  <<: *robotpkg-py-pinocchio
Justin Carpentier's avatar
Justin Carpentier committed
117
  image: memmos.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio-py3:18.04
Guilhem Saurel's avatar
Guilhem Saurel committed
118

119 120
robotpkg-py-pinocchio-18.04-release:
  <<: *robotpkg-py-pinocchio
Justin Carpentier's avatar
Justin Carpentier committed
121
  image: memmos.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio:18.04
122

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

robotpkg-py-pinocchio-py3-18.04-debug:
130
  <<: *robotpkg-py-pinocchio
Justin Carpentier's avatar
Justin Carpentier committed
131
  image: memmos.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio-py3:18.04
Guilhem Saurel's avatar
Guilhem Saurel committed
132 133
  before_script:
    - echo PKG_OPTIONS.py-pinocchio=debug >> /opt/openrobots/etc/robotpkg.conf
134

135
doc-coverage:
136
  <<: *robotpkg-py-pinocchio
Justin Carpentier's avatar
Justin Carpentier committed
137
  image: memmos.laas.fr:5000/stack-of-tasks/pinocchio/py-pinocchio:18.04
138 139 140 141
  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
142
    - cd $(make show-var VARNAME=WRKSRC)
143 144 145
    - make doc
    - mv doc/doxygen-html ${CI_PROJECT_DIR}
    - mkdir -p ${CI_PROJECT_DIR}/coverage/
Justin Carpentier's avatar
Justin Carpentier committed
146 147
    - gcovr -r . --exclude .*bindings/python --exclude CMakeFiles/
    - gcovr -r . --exclude .*bindings/python --exclude CMakeFiles/ --html --html-details -o ${CI_PROJECT_DIR}/coverage/index.html
148 149 150 151 152
  artifacts:
    expire_in: 1 day
    paths:
      - doxygen-html/
      - coverage/